Python seasonIntervals time offset by start seconds

Fixes #2860
This commit is contained in:
Ale Martinez
2018-04-30 16:59:28 -03:00
parent 4e3b8d0548
commit bdf88cae98

View File

@@ -1138,8 +1138,8 @@ Bindings::seasonIntervals(DateRange range, QString type) const
QDate d = ride->dateTime.date();
PyList_SET_ITEM(datelist, idx, PyDate_FromDate(d.year(), d.month(), d.day()));
// TIME
QTime t = ride->dateTime.time();
// TIME - time offsets by time of interval
QTime t = ride->dateTime.time().addSecs(item->start);
PyList_SET_ITEM(timelist, idx, PyTime_FromTime(t.hour(), t.minute(), t.second(), t.msec()*10));
// NAME