From 787d5385ba40f9ed651d813148f72f56c56ba4a2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 25 Jul 2014 10:17:38 +0000 Subject: [PATCH] * Addressbook/all apps: dates change every time they get stored (temporary fix as conditions causing that are not clear) --- etemplate/js/et2_widget_date.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index 7373fde1d2..6c83d61c42 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -238,6 +238,10 @@ var et2_date = et2_inputWidget.extend( this.date.setMonth(0); this.date.setFullYear(1970); } + else if (this._type == 'date') + { + this.date.setHours(12); + } // Convert to timestamp - no seconds this.date.setSeconds(0,0); return Math.round(this.date.valueOf() / 1000);