From c6783d8b8e7be49c2fcbe65eee74636f6eb43cd8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 25 Jul 2014 12:32:34 +0000 Subject: [PATCH] document hack, to work around birthdays changing one day for each time they are stored --- etemplate/js/et2_widget_date.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/et2_widget_date.js b/etemplate/js/et2_widget_date.js index 6c83d61c42..868de776f0 100644 --- a/etemplate/js/et2_widget_date.js +++ b/etemplate/js/et2_widget_date.js @@ -238,6 +238,8 @@ var et2_date = et2_inputWidget.extend( this.date.setMonth(0); this.date.setFullYear(1970); } + // this is a hack, to work around birthdays changing one day for each time they are stored + // ToDo: either find and fix the reason, or send date as YYYY-mm-dd string to server else if (this._type == 'date') { this.date.setHours(12);