[kde-solaris] clock is wrong

Tobias Oetiker oetiker at ee.ethz.ch
Fri Mar 31 14:50:57 CEST 2006


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/


More information about the kde-solaris mailing list