[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-solaris
Subject:    Re: [kde-solaris] clock is wrong
From:       Tobias Oetiker <oetiker () ee ! ethz ! ch>
Date:       2006-03-31 12:50:57
Message-ID: Pine.GSO.4.64.0603311449060.6422 () ybtva-01 ! rr ! rgum ! pu
[Download RAW message or body]

Today Stefan Teleman wrote:

> On Thursday 30 March 2006 08:59, Steve Evans wrote:
> > Any chance that you could post the patch here so we can apply it?
>
> Here it is.

on solaris 9 I needed this to make it realy work ... the zone.tab
file contains some nonsens ...

--- kdecore/ktimezones.cpp.tele 2006-03-31 09:15:43.242017000 +0200
+++ kdecore/ktimezones.cpp      2006-03-31 10:14:58.139873000 +0200
@@ -510,6 +510,13 @@
         if (tokens[3] == "-")
           tokens[3] = "";

+        QFileInfo fi( m_zoneinfoDir + '/' + tokens[2] );
+        if (! fi.isFile())
+        {
+            kdError() << "not a zonefile: " << fi.filePath() << endl;
+            continue;
+        }
+
         KTimezone *timezone = new KTimezone(db, tokens[2], tokens[0], latitude, longitude, tokens[3]);
         add(timezone);
     }


cheers
tobi


-- 
ETH Zurich
Tobias Oetiker, IT Support Group D-ITET (ISG.EE)
ETL F24.2, Physikstrasse 3, 8092 Zurich, Switzerland
Phone +41 44 63 25286,  http://people.ee.ethz.ch/oetiker/
___________________________________________________
This message is from the kde-solaris mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde-solaris.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic