GNOME Bugzilla – Bug 777762
[git master/flatpak] week view: off-by-one bug in weekdates, January 23 2017 is Monday, not Sunday
Last modified: 2017-03-05 10:33:31 UTC
I am running gnome-calendar ("master") from gnome nightly apps flatpak repo. When opening week view, I see a box above the events which shows both date (day in month) and weekdate, shortened (MO for monday, …). I opened gnome-calendar for the current week (week 4, January 2017) and I see that the weekdate is off by one. 23 January 2017 is shown as Sunday, but in reality it has been a Monday. This bug is present for different weeks, even 6 months in the future (July 2017). On the other hand, gnome-calendar's month and year view are behaving correctly, so does gnome-shell's calendar and the one from evolution.
This also happens in jhbuild.
Christian, what's your locale? It works for me with en_US where the first day of the week is Sunday.
(In reply to Jeremy Bicha from comment #2) > Christian, what's your locale? de_DE. We have Monday as first day of week in general. And we are at UTC+1 in winter and UTC+2 in summer.
In locales such as en_GB, where Monday is the starting day of week this bug surfaces in the Week View. This bug might be a result of Bug 779346 (https://bugzilla.gnome.org/show_bug.cgi?id=779346).
As I've already commented on (https://bugzilla.gnome.org/show_bug.cgi?id=779346) This is because the week_header's first_weekday value is not getting updated simultaneously when week_view's first_weekday. We just need to call set_first_weekday() for week_header and that'll fix it.
Thanks for reporting the issue. I believe this issue was fixed by the patch in bug 779346. Please, reopen this ticket if you continue seeing this issue.
Thank you, fix confirmed!