GNOME Bugzilla – Bug 681669
'Select today' in work week view goes to wrong week
Last modified: 2012-09-11 08:39:16 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.
Thanks for a bug report and a detailed description. I can reproduce it too, even on the development version of evolution, thus confirming.
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.
Created commit c4f35ce in evo master (3.5.91+)
*** Bug 606314 has been marked as a duplicate of this bug. ***
Hrm, my change has regression, see bug #683736 for more details.