From 57e420eda22920ead8e21004b135ebb35d536307 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Tue, 29 Sep 2015 08:17:17 +0200 Subject: [PATCH] use UTC to go back in time --- docroot/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docroot/index.html b/docroot/index.html index 47b8e4c..38ccd8d 100644 --- a/docroot/index.html +++ b/docroot/index.html @@ -49,9 +49,9 @@ var now = moment(); - var f12 = now.subtract(12, 'hours').format('YYYY-MM-DDTHH:MM'); - var f7 = now.subtract(7, 'days').format('YYYY-MM-DDTHH:MM'); - var f30 = now.subtract(30, 'days').format('YYYY-MM-DDTHH:MM'); + var f12 = now.subtract(12, 'hours').utc().format('YYYY-MM-DDTHH:MM'); + var f7 = now.subtract(7, 'days').utc().format('YYYY-MM-DDTHH:MM'); + var f30 = now.subtract(30, 'days').utc().format('YYYY-MM-DDTHH:MM'); $.ajax({ url: dataURI,