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 681669 - 'Select today' in work week view goes to wrong week
'Select today' in work week view goes to wrong week
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
3.4.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
: 606314 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-08-12 04:04 UTC by Stewart Hardie
Modified: 2012-09-11 08:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (1.69 KB, patch)
2012-08-24 16:04 UTC, Milan Crha
committed Details | Review

Description Stewart Hardie 2012-08-12 04:04:22 UTC
Name        : evolution
Arch        : x86_64
Version     : 3.4.3
Release     : 2.fc17

Name        : evolution-exchange
Arch        : x86_64
Version     : 3.4.3
Release     : 1.fc17

All my locale/language/format settings are set to New Zealand/English.
LANG=en_NZ.utf8
Date/Time is set to Auckland, New Zealand, Pacific.
Sun Aug 12 15:50:50 NZST 2012

Evolution preferences 'Time zone' is using system time zone ie. Pacific/Auckland.

Set up evo exchange account using evolution-exchange. Works ok.

Go to calendar. See all exchange appointments ok.

In Evo preferences, set work week to start on Monday, work days are all of Mon to Sun ie. all days are ticked as being work days.

In calendar, select 'Work week' view. I am seeing all of Mon to Sun.

On any actual day Mon to Sat, pressing 'Select today' button will jump calendar week view to the current week. But when I do this on a Sunday (ie. today is actually Sunday Aug 12th at about 4pm NZ time), pressing 'Select today' button jumps the calendar week view to the following week (ie. it is showing the week view of Mon 13th Aug to Sun 19th Aug).

It should still show the week Mon 6th Aug to Sun 12th Aug.
Comment 1 Milan Crha 2012-08-24 13:36:15 UTC
Thanks for a bug report and a detailed description. I can reproduce it too, even on the development version of evolution, thus confirming.
Comment 2 Milan Crha 2012-08-24 16:04:10 UTC
Created attachment 222349 [details] [review]
evo patch

for evolution;

As is written elsewhere in the code, there had been done a change with day numbering, from 0 for Sunday to 0 for Monday, and this selection code was not updated.
Comment 3 Milan Crha 2012-08-24 16:05:43 UTC
Created commit c4f35ce in evo master (3.5.91+)
Comment 4 Milan Crha 2012-09-07 06:08:18 UTC
*** Bug 606314 has been marked as a duplicate of this bug. ***
Comment 5 Milan Crha 2012-09-11 08:39:16 UTC
Hrm, my change has regression, see bug #683736 for more details.