[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Tue Nov 22 04:59:42 CET 2005


SVN commit 482176 by staikos:

should fix the timezone offset issues


 M  +2 -1      dateparser.cpp  


--- trunk/extragear/graphics/kst/kst/dateparser.cpp #482175:482176
@@ -73,6 +73,7 @@
 
   QStringList mainSplit = QStringList::split(':', secondSplit[0]);
   ExtDateTime edt = ExtDateTime::currentDateTime();
+  int offset = ExtDateTime::currentDateTime(Qt::UTC).toTime_t() - edt.toTime_t();
   ExtDate d = edt.date();
   QTime t = edt.time();
   int i = 0;
@@ -117,7 +118,7 @@
       edt.setTime(t);
       break;
   }
-  return edt;
+  return edt.addSecs(-2 * offset);
 }
 
 }


More information about the Kst mailing list