* Addressbook/all apps: dates change every time they get stored (temporary fix as conditions causing that are not clear)

This commit is contained in:
Ralf Becker 2014-07-25 10:17:15 +00:00
parent 35e5ff6d6e
commit 970331b97c

View File

@ -238,6 +238,10 @@ var et2_date = et2_inputWidget.extend(
this.date.setMonth(0); this.date.setMonth(0);
this.date.setFullYear(1970); this.date.setFullYear(1970);
} }
else if (this._type == 'date')
{
this.date.setHours(12);
}
// Convert to timestamp - no seconds // Convert to timestamp - no seconds
this.date.setSeconds(0,0); this.date.setSeconds(0,0);
return Math.round(this.date.valueOf() / 1000); return Math.round(this.date.valueOf() / 1000);