Changeset 6a624f7


Ignore:
Timestamp:
01/13/10 22:59:20 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
92995da
Parents:
969a840
Message:

minor fix

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/model/conference.h

    r969a840 r6a624f7  
    2424    QString venue() const { return value("venue").toString(); }
    2525    QString city() const { return value("city").toString(); }
    26     // TODO: there is some problem with converting "Time_t" to QDateTime: had to manually add 1 day
    27     // NEEDS TO BE FIXED
    28     QDate start() const { return value("start").toDateTime().addDays(1).date(); }
    29     QDate end() const { return value("end").toDateTime().addDays(1).date(); }
    30     //
     26    QDate start() const { return value("start").toDate(); }
     27    QDate end() const { return value("end").toDate(); }
    3128    int days() const { return value("days").toInt(); }
    3229    int dayChange() const { return value("day_change").toInt(); } // in seconds from 00:00
  • src/sql/sqlengine.cpp

    r969a840 r6a624f7  
    6868                         .arg(aConference["venue"]) \
    6969                         .arg(aConference["city"]) \
    70                          .arg(QDateTime(QDate::fromString(aConference["start"],DATE_FORMAT)).toTime_t()) \
    71                          .arg(QDateTime(QDate::fromString(aConference["end"],DATE_FORMAT)).toTime_t()) \
     70                         .arg(QDateTime(QDate::fromString(aConference["start"],DATE_FORMAT),QTime(0,0),Qt::UTC).toTime_t()) \
     71                         .arg(QDateTime(QDate::fromString(aConference["end"],DATE_FORMAT),QTime(0,0),Qt::UTC).toTime_t()) \
    7272                         .arg(aConference["days"]) \
    7373                         .arg(-QTime::fromString(aConference["day_change"],TIME_FORMAT).secsTo(QTime(0,0))) \
Note: See TracChangeset for help on using the changeset viewer.