[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Tue Nov 15 23:37:34 CET 2005


SVN commit 480647 by arwalker:

Correctly account for timezone offset from UTC

 M  +4 -1      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #480646:480647
@@ -1332,7 +1332,10 @@
     }
   }
 
-  dJD += double(KstSettings::globalSettings()->utcOffset()) / 3600;
+  // utcOffset() is returned in seconds... as it must be since
+  //  some time zones are not an integer number of hours offset
+  //  from UTC...
+  dJD += double(KstSettings::globalSettings()->utcOffset()) / 86400.0;
 
   length = 0;
 


More information about the Kst mailing list