Bug 213976 - VTIMEZONE error in ics file
Summary: VTIMEZONE error in ics file
Status: RESOLVED UNMAINTAINED
Alias: None
Product: korganizer
Classification: Applications
Component: timezones (show other bugs)
Version: 4.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-10 13:40 UTC by rob miller
Modified: 2017-01-07 22:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rob miller 2009-11-10 13:40:34 UTC
Version:            (using KDE 4.3.3)
Compiler:          gcc version 4.3.4 
OS:                Linux
Installed from:    Gentoo Packages

I have United Kingdom set for my region/language in system settings, but Africa/Lagos for /etc/localtime and for 'General Time and Date' KOrganizer settings in Kontact settings.

ftp://elsie.nci.nih.gov/pub/tzdata2009r.tar.gz states

# Nigeria
# Zone  NAME            GMTOFF  RULES   FORMAT  [UNTIL]
Zone    Africa/Lagos    0:13:36 -       LMT     1919 Sep
                        1:00    -       WAT

Today is 10 Nov 2009.
Starting with no std.ics file in ~/.kde4/share/apps/korganizer I start Kontact and create an event at 11:00 am on 11 Nov 2009.  This displays correctly in the month view.  Close Kontact.

The std.ics file shows:

TZID:Africa/Lagos
BEGIN:STANDARD
TZNAME:WAT
TZOFFSETFROM:+001336
TZOFFSETTO:+0100
DTSTART:19190901T234624
RDATE;VALUE=DATE-TIME:19190901T234624
END:STANDARD
END:VTIMEZONE

Main Bug: On re-starting Kontact, the event is displayed 12h 36m earlier (22:24 10 Nov).  Click to edit the event and the correct time/date is shown, and on ok/apply the event is correct in the calendar.  Upon closing Kontact, the std.ics file now shows:

TZOFFSETFROM:+1336

On changing this to 

TZOFFSETFROM:+0013

event times appear to be ok and stay ok.

Observations:  (1) I believe the TZOFFSETFROM field spec is HHMM; (2) my inexperienced reading of the tzdata above suggests that before 01 Sept 1919 Africa/Lagos was +13m36s off GMT, and after that date it was +1h off GMT; seems like it shouldn't matter if it was +13h off GMT before 1919 (as in the bug), from 1919 forward it should be +1h only -- but Korganizer looks to be adding the previous offset [certainly I bow to tz experts here, just noting it does not seem right to the naive observer].
Comment 1 Denis Kurz 2016-09-24 18:49:43 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of korganizer (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 22:21:05 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.