diff --git a/herokuapp/app.js b/herokuapp/app.js index 0999904..dfa0c58 100644 --- a/herokuapp/app.js +++ b/herokuapp/app.js @@ -76,7 +76,13 @@ var port = app.get('port'); + //log something every 10 minutes + setInterval(function () { + console.tag("Test").log("Hi there ! Server date : " + new Date()); + }, 10 * 60 * 1000); + app.listen(port, function() { console.time().log('Server listening at port ' + port); }); + })(); diff --git a/static/js/app.js b/static/js/app.js index e333c8e..af925e2 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -238,7 +238,7 @@ var offset = serverOffset - localOffset; - return timestamp + offset * 60 * 1000; + return timestamp - offset * 60 * 1000; }; /** diff --git a/static/partials/elements/log.html b/static/partials/elements/log.html index ea7dfe1..403fde1 100644 --- a/static/partials/elements/log.html +++ b/static/partials/elements/log.html @@ -19,7 +19,7 @@ - {{timezoneDate(log.context.time) | date: 'yyyy-MM-ddTHH:mm:ss:Z'}} + {{timezoneDate(log.context.time) | date: 'yyyy-MM-ddTHH:mm:ss'}}