Ignore:
Timestamp:
09/13/17 23:28:44 (5 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
d03ca41
Parents:
f0f9fdc
git-author:
Philipp Spitzer <philipp@…> (09/13/17 23:20:23)
git-committer:
Philipp Spitzer <philipp@…> (09/13/17 23:28:44)
Message:

Import schedules with dates attached to events correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    rf0f9fdc r7ba0378  
    3838#include <QDebug>
    3939
    40 const QString DATE_FORMAT ("yyyy-MM-dd");
    41 const QString TIME_FORMAT ("hh:mm");
    42 
    4340SqlEngine::SqlEngine(QObject *aParent): QObject(aParent) {
    4441#if QT_VERSION >= 0x050000
     
    193190    QDate startDate = QDate::fromString(aEvent["date"], DATE_FORMAT);
    194191    QTime startTime = QTime::fromString(aEvent["start"], TIME_FORMAT);
    195     // consider day_change (note that if day_change is e.g. at 04:00 AM, an event starting at 02:00 AM has the previous date in the XML file)
    196     if (startTime < conference.dayChangeTime()) startDate = startDate.addDays(1);
    197192    QDateTime startDateTime;
    198193    startDateTime.setTimeSpec(Qt::UTC);
Note: See TracChangeset for help on using the changeset viewer.