GNOME Bugzilla – Bug 762460
[PATCH] year view events added a day earlier in UTC+ timezones
Last modified: 2017-04-17 18:20:40 UTC
Created attachment 321848 [details] [review] year view UTC+ event add fix Currently adding full-day events in year view are added a day earlier if one is in a UTC+ timezone. The code in build_component_from_details transforms the given start & end date (both 00:00 midnight) to UTC midnight, however in any +UTC timezone this is the day before. It then re-adds the timezone offset to the UTC date, resulting in (UTC midnight - tz offset) in the users timezone. I believe it should just keep to local time as default, with the timezone offset indicating offset from UTC (indicating timezone). Attached patch does so and works for me (+1 UTC). However I do not know how e_cal* expects it's date's to be delivered for internal use.
Review of attachment 321848 [details] [review]: This is already fixed in master, sorry for not checking your patch in time!