From 5b43b1f63c7446f6394677b2b7a4da4b569a3d60 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 29 Mar 2018 09:31:45 -0600 Subject: [PATCH] * Etemplate - Stop times from advancing 1 hour shortly after DST --- api/js/etemplate/et2_widget_date.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/js/etemplate/et2_widget_date.js b/api/js/etemplate/et2_widget_date.js index 7e5d23b6d2..b934215286 100644 --- a/api/js/etemplate/et2_widget_date.js +++ b/api/js/etemplate/et2_widget_date.js @@ -612,9 +612,9 @@ String: A string in the user\'s date format, or a relative date. Relative dates // date-timeonly returns just the seconds, without any date! if (this._type == 'date-timeonly') { - this.date.setDate(1); - this.date.setMonth(0); - this.date.setFullYear(1970); + this.date.setUTCDate(1); + this.date.setUTCMonth(0); + this.date.setUTCFullYear(1970); } else if (this._type == 'date') {