summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2014-01-22 20:05:46 -0800
committerMichael Ball <cycomachead@gmail.com>2014-01-22 20:05:46 -0800
commitede60eec562d93411eb26462e789b8414d5455f1 (patch)
tree0513bc90df848432538185b2a5f335d58e44d653
parentf39f8fbc0812a70c9428e58b6d24559e4d98e004 (diff)
downloadsnap-ede60eec562d93411eb26462e789b8414d5455f1.tar.gz
snap-ede60eec562d93411eb26462e789b8414d5455f1.zip
date block work
-rw-r--r--threads.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/threads.js b/threads.js
index 9192023..735f17b 100644
--- a/threads.js
+++ b/threads.js
@@ -2479,16 +2479,14 @@ Process.prototype.reportTimer = function () {
var dateMap = {
'date' : 'toLocaleDateString',
'time' : 'toLocaleTimeString',
- 'month' : 'getMonthName', // return a name, not a number
'year' : 'getFullYear',
+ 'month' : 'getMonthName', // return a name, not a number
+ 'date': 'getDate',
'day of week' : 'getDayName', // return a name, not a number
- 'day of month': 'getDate',
'hour' : 'getHours',
'minute' : 'getMinutes',
'second' : 'getSeconds',
- 'milliseconds' : 'getMilliseconds',
- 'time in milliseconds' : 'getTime',
- 'UTC time' : 'toUTCString' };
+ 'time in milliseconds' : 'getTime' };
Process.prototype.reportDate = function (datefn) {
if (!dateMap[datefn]) { return ''; }