From ede60eec562d93411eb26462e789b8414d5455f1 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 22 Jan 2014 20:05:46 -0800 Subject: [PATCH] date block work --- threads.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/threads.js b/threads.js index 91920234..735f17b6 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 ''; }