mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:39:00 +01:00
Calendar: Fix days offset by one
Depending on your timezone and current time, your calendar could show the wrong days (Tuesday -> Monday)
This commit is contained in:
parent
0d4cde3ad6
commit
044b57a813
@ -335,9 +335,9 @@ export class et2_calendar_view extends et2_valueWidget
|
||||
// Ymd format: 20000101
|
||||
date.setFullYear(parseInt(_value.substring(0, 4)));
|
||||
// Avoid overflow into next month since it already has a value
|
||||
date.setDate(1);
|
||||
date.setMonth(parseInt(_value.substring(4, 6)) - 1);
|
||||
date.setDate(parseInt(_value.substring(6, 8)));
|
||||
date.setUTCDate(1);
|
||||
date.setUTCMonth(parseInt(_value.substring(4, 6)) - 1);
|
||||
date.setUTCDate(parseInt(_value.substring(6, 8)));
|
||||
date.setUTCHours(0);
|
||||
date.setUTCMinutes(0);
|
||||
date.setUTCSeconds(0);
|
||||
|
Loading…
Reference in New Issue
Block a user