summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2014-02-07 15:16:14 -0800
committerMichael Ball <cycomachead@gmail.com>2014-02-10 10:32:07 -0800
commit5fd102c8a98d18d24d9739cb961ec8dd2ac8935e (patch)
tree2f0319a4f5739cec11b92f7ab850b63ec6e42957 /threads.js
parent434392a87990395e689bf472fdf4ff71c92cbea8 (diff)
downloadsnap-byow-5fd102c8a98d18d24d9739cb961ec8dd2ac8935e.tar.gz
snap-byow-5fd102c8a98d18d24d9739cb961ec8dd2ac8935e.zip
use inputOption for dateblock update file date
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/threads.js b/threads.js
index 7b46f70..4d3cbce 100644
--- a/threads.js
+++ b/threads.js
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
-modules.threads = '2014-Feb-03';
+modules.threads = '2014-Feb-10';
var ThreadManager;
var Process;
@@ -2549,14 +2549,16 @@ var dateMap = {
'time in milliseconds' : 'getTime' };
Process.prototype.reportDate = function (datefn) {
- if (!dateMap[datefn]) { return ''; }
+ inputFn = this.inputOption(datefn);
+
+ if (!dateMap[inputFn]) { return ''; }
currDate = new Date();
- func = dateMap[datefn];
+ func = dateMap[inputFn];
result = currDate[func]();
// Show months as 1-12 and days as 1-7
- if (datefn === 'month' || datefn === 'day of week') {
+ if (inputFn === 'month' || inputFn === 'day of week') {
result += 1;
}