diff options
author | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-11 20:16:30 +0100 |
---|---|---|
committer | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-11 20:16:30 +0100 |
commit | 5e7ab8036bc07c11080de84ce074ccea7ec97f53 (patch) | |
tree | 0e5eea87418ceb0cad873d0622cb7f59acbaa230 /model_fs.js | |
parent | 0711c6e8494ad51e32e1f67d66ecd712d87c763d (diff) |
Use toLocaleDate() to return a date conforming to locale settings
Diffstat (limited to 'model_fs.js')
-rw-r--r-- | model_fs.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/model_fs.js b/model_fs.js index 82dd559..036689c 100644 --- a/model_fs.js +++ b/model_fs.js @@ -110,10 +110,10 @@ exports.rebuildFiles = function() { var ev = data[k]; ev.time = ev.start.toLocaleTimeString(); if(ev.start && ev.summary) { - if(typeof compEv[ev.start.toDateString()] == "undefined") { - compEv[ev.start.toDateString()] = []; + if(typeof compEv[ev.start.toLocaleDateString()] == "undefined") { + compEv[ev.start.toLocaleDateString()] = []; } - compEv[ev.start.toDateString()].push(ev); + compEv[ev.start.toLocaleDateString()].push(ev); } } setEvents(slideset, compEv, function(err) { |