[Users] [Bug 1769] vCalendar timezone glitches

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Tue Dec 16 12:26:42 CET 2014


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=1769

--- Comment #9 from Darko <darko at users.sf.net> ---
Created attachment 1461
  -->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1461&action=edit
vcalendar patch

Attempt at fixing time zone stuff in vcalendar meeting requests.
I have tested it against couple of meeting requests at work. The
requests have originated in different parts of the world and all
seem to display fine.

Note that this patch does not handle daylight saving time stuff.
I have one recuring meeting request that was created while DST
was in effect and it displays fine on winter time (it was created
in my local time zone however so no guarantees it might work for
all meeting requests).

The patch performs the following tasks:
1. Extract UTC offset from the meeting request
2. Convert the event time to UTC time by substracting the offset from step 1.
3. Calculate UTC offset for local time zone
4. Conver the event time from UTC time to local time by adding the UTC offset
from step 3.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list