Re: clock is wrong

Tobias Oetiker <[email protected]>
Newsgroups gmane.comp.kde.solaris
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.