summaryrefslogtreecommitdiff
path: root/www/js/EventsGraphsCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventsGraphsCtrl.js')
-rw-r--r--www/js/EventsGraphsCtrl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/EventsGraphsCtrl.js b/www/js/EventsGraphsCtrl.js
index fe1185e7..758e7ec8 100644
--- a/www/js/EventsGraphsCtrl.js
+++ b/www/js/EventsGraphsCtrl.js
@@ -141,8 +141,8 @@ angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', ['$ioni
if (hrs) {
// Apply a time based filter if I am not watching all events
var cur = moment();
- endDate = cur.format("YYYY-MM-DD hh:mm:ss");
- startDate = cur.subtract(hrs, 'hours').format("YYYY-MM-DD hh:mm:ss");
+ endDate = cur.format("YYYY-MM-DD "+ZMDataModel.getTimeFormat());
+ startDate = cur.subtract(hrs, 'hours').format("YYYY-MM-DD "+ZMDataModel.getTimeFormat());
//console.log("Start and End " + startDate + "==" + endDate);
ZMDataModel.zmLog("Generating graph for " + startDate + " to " + endDate);