[regression] first day of the month is broken for some months
Bug #1202366 reported by
Olivier Tilloy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calendar App |
Fix Released
|
Critical
|
Olivier Tilloy |
Bug Description
This is better explained by a few screenshots (courtesy of Kunal):
http://
http://
http://
This appears to be a regression introduced by revision 66 in trunk (which fixed bug #1198652). Confirmed by selectively reverting this revision, and verifying that it fixed the issue.
Related branches
lp:~osomon/ubuntu-calendar-app/all-dates-local
- Riccardo Padovani (community): Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Ubuntu Calendar Developers: Pending requested
-
Diff: 11 lines (+1/-1)1 file modifieddateExt.js (+1/-1)
Changed in ubuntu-calendar-app: | |
status: | Confirmed → In Progress |
Changed in ubuntu-calendar-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In dateExt.js, in the midnight() function, changing
date. setHours( 0,0,0,0) ;
to
date. setUTCHours( 0,0,0,0) ;
fixes the issue. However bug #1198652 is back.
This is basically because the current date in UTC is not necessarily the same as the current date in the user’s location.