mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
an other timezone fix for time(only) widget: this.date is on current date, changing it in get_value() to 1970-01-01, gives a time-difference, if we are currently on DST
This commit is contained in:
parent
f9a99637d1
commit
df83b4dbbe
@ -154,6 +154,10 @@ var et2_date = et2_inputWidget.extend(
|
||||
return;
|
||||
}
|
||||
this.set_validation_error(false);
|
||||
// this.date is on current date, changing it in get_value() to 1970-01-01, gives a time-difference, if we are currently on DST
|
||||
this.date.setDate(1);
|
||||
this.date.setMonth(0);
|
||||
this.date.setFullYear(1970);
|
||||
// Avoid javascript timezone offset, hour is in 'user time'
|
||||
this.date.setUTCHours(parsed.hour);
|
||||
this.date.setMinutes(parsed.minute);
|
||||
|
Loading…
Reference in New Issue
Block a user