From 88a9bd65836627b3afdf0b5f13bb3b201df6f2e2 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 23 Nov 2015 17:14:52 +0000 Subject: [PATCH] Fix today button always went to yesterday east of GMT --- calendar/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index ad9ccc56bf..858558f4f2 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -2806,7 +2806,7 @@ app.classes.calendar = AppJS.extend( .addClass('et2_clickable') .on('click', function() { var tempDate = new Date(); - var today = new Date(tempDate.getFullYear(), tempDate.getUTCMonth(), tempDate.getUTCDate()); + var today = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate(),0,-tempDate.getTimezoneOffset(),0); app.calendar.update_state({date: today.toJSON()}); }); var position_today = function() {