Bug 131005

Summary: timezone handling fails on some systems
Product: [Applications] korganizer Reporter: Mark Davies <mark>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: NetBSD pkgsrc   
OS: NetBSD   
Latest Commit: Version Fixed In:
Attachments: patch to use KTimezones class
patch to use KTimezones class

Description Mark Davies 2006-07-18 02:40:21 UTC
Version:            (using KDE KDE 3.5.3)
Installed from:    NetBSD pkgsrc
Compiler:          gcc 3.3.4 
OS:                NetBSD

korganiser tries to handle timezones itself and doesn't handle very well different systems that may have /etc/timezone vs /etc/localtime vs TZ environment variable vs something else and different locations for the zone.tab file resulting in just "[No Selection]" in the Timezone list in the Time and Date configure panel or not matching the local time zone against one in the list.  As is seen in Bug #40541 (where a Solaris specific patch has been applied) and Bug #88636 which is still outstanding.
For a while now kdelibs has had a KTimezones class that deals with all this for you.  I will attach two patches to this bug report that change korganiser to use that class.  They are functional but someone with better CC++ knowledge than mine could clean up the patches.  I just kept them that way to make minimal changes to the surrounding code.

cheers
mark
Comment 1 Mark Davies 2006-07-18 02:41:55 UTC
Created attachment 17018 [details]
patch to use KTimezones class
Comment 2 Mark Davies 2006-07-18 02:43:18 UTC
Created attachment 17019 [details]
patch to use KTimezones class
Comment 3 Reinhold Kainhofer 2006-11-02 19:09:29 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 4 Bruno Virlet 2007-07-26 17:59:43 UTC
This is fixed in KDE4, it uses kdelibs which has all the platform-dependant code.