diff options
-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) { |