From 0711c6e8494ad51e32e1f67d66ecd712d87c763d Mon Sep 17 00:00:00 2001 From: Benjamin Kiessling Date: Tue, 10 Jan 2012 02:28:14 +0100 Subject: New more modular event replacement --- frontend.js | 6 +++--- model_fs.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend.js b/frontend.js index ed093f4..c99a361 100644 --- a/frontend.js +++ b/frontend.js @@ -29,12 +29,12 @@ exports.start = function(config) { var eventStr = ''; for(var date in slides['events']) { if(!slides['events'].hasOwnProperty(date)) { continue; } - eventStr = eventStr + '

'+date+'


'; } body = body.replace("$IMAGES", slideStr); body = body.replace("$EVENTS", eventStr); diff --git a/model_fs.js b/model_fs.js index 23d113f..82dd559 100644 --- a/model_fs.js +++ b/model_fs.js @@ -108,7 +108,7 @@ exports.rebuildFiles = function() { for (var k in data) { if (!data.hasOwnProperty(k)) { continue; } var ev = data[k]; - ev.time = ev.start.toTimeString(); + ev.time = ev.start.toLocaleTimeString(); if(ev.start && ev.summary) { if(typeof compEv[ev.start.toDateString()] == "undefined") { compEv[ev.start.toDateString()] = []; -- cgit v1.2.1