Changeset ba3fc20 for src


Ignore:
Timestamp:
02/05/10 16:46:54 (12 years ago)
Author:
uzakmat <uzakmat@…>
Branches:
master, qt5
Children:
7270ae0
Parents:
939baeb
Message:

alarm UTC/localtime fix

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/alarm/alarm.cpp

    r939baeb rba3fc20  
    4444    /* Use absolute time triggering */
    4545    //eve->alarm_time = time(0) + 5; // for testing (5 seconds from now)
    46     eve->alarm_time = aDateTime.toTime_t();
     46    QDateTime local( aDateTime);
     47    qDebug() << "UTC: " << local.toTime_t();
     48    local.setTimeSpec(Qt::LocalTime);
     49    qDebug() << "LocalTime: " << local.toTime_t();
     50   
     51    eve->alarm_time = local.toTime_t();
    4752    eve->flags = ALARM_EVENT_BOOT;
    4853
  • src/gui/about.ui

    r939baeb rba3fc20  
    188188               <widget class="QLabel" name="label_2" >
    189189                <property name="text" >
    190                  <string>Version 0.3</string>
     190                 <string>Version 0.4</string>
    191191                </property>
    192192               </widget>
Note: See TracChangeset for help on using the changeset viewer.