After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777762 - [git master/flatpak] week view: off-by-one bug in weekdates, January 23 2017 is Monday, not Sunday
[git master/flatpak] week view: off-by-one bug in weekdates, January 23 2017 ...
Status: RESOLVED FIXED
Product: gnome-calendar
Classification: Applications
Component: Views
unspecified
Other Linux
: Normal blocker
: 3.26
Assigned To: GNOME Calendar maintainers
GNOME Calendar maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-25 19:15 UTC by Christian Stadelmann
Modified: 2017-03-05 10:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Stadelmann 2017-01-25 19:15:14 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.
Comment 1 Mohammed Sadiq 2017-02-02 13:58:40 UTC
This also happens in jhbuild.
Comment 2 Jeremy Bicha 2017-02-16 15:58:34 UTC
Christian, what's your locale?

It works for me with en_US where the first day of the week is Sunday.
Comment 3 Christian Stadelmann 2017-02-17 17:13:59 UTC
(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.
Comment 4 Joyjit Choudhury 2017-02-28 05:40:50 UTC
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).
Comment 5 Gollapudi Vamsi Krishna 2017-03-01 19:40:53 UTC
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.
Comment 6 Georges Basile Stavracas Neto 2017-03-02 18:21:19 UTC
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.
Comment 7 Christian Stadelmann 2017-03-05 10:33:31 UTC
Thank you, fix confirmed!