Bug 122139 - timezones do not work on Solaris 2.8 with KDE 3.5, problem likely in ktimezones.cpp
Summary: timezones do not work on Solaris 2.8 with KDE 3.5, problem likely in ktimezon...
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Solaris
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-17 04:25 UTC by Aaron Williams
Modified: 2011-03-10 08:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
set zoneinfo path for solaris (533 bytes, patch)
2006-02-21 14:24 UTC, Torsten Kasch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Williams 2006-02-17 04:25:59 UTC
Version:           unknown (using KDE 3.5.1, compiled sources)
Compiler:          gcc version 3.3.6
OS:                SunOS (sun4u) release 5.8

The timezone processing in kdecore/ktimezones.cpp needs to be a bit more advanced on Solaris.

In my case, our local time zone is set to US/Pacific which is linked to America/Los_Angeles in the file /usr/share/lib/zoneinfo/src/backwards for backwards compatibility for names prior to 1993.  KDE needs to be able to map the old names to the new names like Solaris normally does.
Comment 1 Torsten Kasch 2006-02-21 14:24:44 UTC
Created attachment 14795 [details]
set zoneinfo path for solaris

The attached patch should set the path to Solaris' zoneinfo files correctly.
Please test.
Comment 2 Aaron Williams 2006-02-22 00:40:18 UTC
I see that you added /usr/share/lib/zoneinfo/tab/zone_sun.tab for Solaris.  The tab subdirectory does not exist, at least in Solaris 2.8.
Comment 3 Torsten Kasch 2006-02-22 08:49:02 UTC
Ok, it seems this file was added in Solaris 9; for any previous Solaris version the information of the tab file (longitude, latitude, etc.) is not available. And now I understand the grep/awk hack in this file which definitely breaks KDE's idea of the correct time on Solaris >= 9...

I'll try to look at this issue more closely later this week...
Comment 4 Aaron Williams 2006-02-22 22:20:57 UTC
As a temporary workaround I copied the zone.tab file from a Linux box to /usr/share/zoneinfo on Solaris with the US/Pacific timezone added.  Perhaps KDE could include a copy of this file and use it if it can't find the file elsewhere.
Comment 5 Dario Andres 2009-05-01 20:00:28 UTC
Is this still valid for KDE4 ? Thanks
Comment 6 groot 2011-03-10 08:23:00 UTC
S8 also EOL'ed some time ago.