alarm UTC/localtime fix
authoruzakmat <uzakmat@localhost>
Fri, 5 Feb 2010 15:46:54 +0000 (15:46 +0000)
committeruzakmat <uzakmat@localhost>
Fri, 5 Feb 2010 15:46:54 +0000 (15:46 +0000)
data/maemo/fosdem-schedule.desktop
debian/changelog
src/alarm/alarm.cpp
src/gui/about.ui

index 6339f70..e3621d7 100644 (file)
@@ -1,6 +1,6 @@
 [Desktop Entry]
 Encoding=UTF-8
-Version=0.3
+Version=0.4
 Type=Application
 Name=FOSDEM'10
 Exec=/usr/bin/fosdem-schedule
index e56ab6b..663230d 100644 (file)
@@ -1,4 +1,8 @@
-fosdem-schedule (0.3) stable; urgency=low
+fosdem-schedule (0.4) stable; urgency=low
+  
+  * Release 0.4
+       
+ -- Marek Timko <marek.timko@ixonos.com>  Tue, 5 Feb 2010 16:40:26 +0100
 
   * Release 0.3
        
index 0cfb31b..006fc79 100644 (file)
@@ -43,7 +43,12 @@ int Alarm::addAlarm(int aEventId, const QDateTime &aDateTime)
 
     /* Use absolute time triggering */
     //eve->alarm_time = time(0) + 5; // for testing (5 seconds from now)
-    eve->alarm_time = aDateTime.toTime_t();
+    QDateTime local( aDateTime);
+    qDebug() << "UTC: " << local.toTime_t();
+    local.setTimeSpec(Qt::LocalTime);
+    qDebug() << "LocalTime: " << local.toTime_t();
+    
+    eve->alarm_time = local.toTime_t();
     eve->flags = ALARM_EVENT_BOOT;
 
     /* Add exec command action */
index 28ceb88..cae3f28 100644 (file)
               <item>
                <widget class="QLabel" name="label_2" >
                 <property name="text" >
-                 <string>Version 0.3</string>
+                 <string>Version 0.4</string>
                 </property>
                </widget>
               </item>