Ignore:
Timestamp:
09/13/17 23:28:44 (5 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
0c71a07
Parents:
7ba0378
git-author:
Philipp Spitzer <philipp@…> (09/13/17 23:26:25)
git-committer:
Philipp Spitzer <philipp@…> (09/13/17 23:28:44)
Message:

If no day_change was given for a conference 4 AM is assumed.

Fixes #53.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/schedulexmlparser.cpp

    r7ba0378 rd03ca41  
    6464            conference["start"] = conferenceElement.firstChildElement("start").text(); // date
    6565            conference["end"] = conferenceElement.firstChildElement("end").text(); // date
    66             conference["day_change"] = conferenceElement.firstChildElement("day_change").text(); // time
     66            QString conferenceDayChangeStr = conferenceElement.firstChildElement("day_change").text(); // time, e.g. "04:00:00"
     67            if (conferenceDayChangeStr.isEmpty()) conferenceDayChangeStr = "04:00:00";
     68            conference["day_change"] = conferenceDayChangeStr;
    6769            conference["timeslot_duration"] = conferenceElement.firstChildElement("timeslot_duration").text(); // time
    6870            conference["url"] = url;
Note: See TracChangeset for help on using the changeset viewer.