[mythtv-commits] Ticket #11197: Fix event times in MythZoneMinder broken by the UTC changes
MythTV
noreply at mythtv.org
Wed Oct 24 22:12:14 UTC 2012
#11197: Fix event times in MythZoneMinder broken by the UTC changes
-------------------------------------+-----------------------------
Reporter: mythtv@… | Owner: danielk
Type: Patch - Bug Fix | Status: accepted
Priority: minor | Milestone: 0.26.1
Component: Plugin - MythZoneminder | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------+-----------------------------
Comment (by paulh <mythtv@…>):
Replying to [comment:3 danielk]:
> Is the date we're getting here ISODate formatted?
> Perhaps we could just use this?
> {{{
> - QString sDate = *it++;
> - item->startTime = MythDate::fromString(sDate);
> + item->startTime = QDateTime::fromString(*it++,
Qt::ISODate).toUTC();
> }}}
Yes the dates are in ISODate format so that should work.
Seems a bit pointless converting the dates to UTC to only have to change
it back later especially when you think we could be dealing with 20,000+
events but so long as the dates displayed match the timestamps on the
images I'm not bothered :)
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11197#comment:4>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list