[mythtv-commits] Ticket #11562: Patch: MythTV Status page in mythweb doesn't print "Suggested next mythfilldatabase run"

MythTV noreply at mythtv.org
Tue May 28 17:13:32 UTC 2013


#11562: Patch: MythTV Status page in mythweb doesn't print "Suggested next
mythfilldatabase run"
------------------------------------+----------------------------------
 Reporter:  Bill Meek <keemllib@…>  |           Type:  Patch - Bug Fix
   Status:  new                     |       Priority:  minor
Milestone:  unknown                 |      Component:  MythTV - General
  Version:  Master Head             |       Severity:  medium
 Keywords:                          |  Ticket locked:  0
------------------------------------+----------------------------------
 Based on a 0.26 user's comment on the -users channel,
 jxself [05-28-2013 00:47:03]

 The date comparison of sNext and sStart is checking different time
 formats. This causes the following to fail, and not print the next
 run:
 {{{
 ...
 if (!next.isNull() && sNext >= sStart)
 {
     os << "    Suggested next mythfilldatabase run: "
             << sNext << ".<br />\r\n";
 ...
 }}}

 In this example, MythFillSuggestedRunTime = 2013-05-29T08:57:58Z and
 mythfilldatabaseLastRunStart = 2013-05-28 12:34:40 (which has already
 been converted to localtime.)

 Without the attached patch (sNext = UTC):
 {{{
 sNext (2013-05-29 08:57:58) >= sStart (Tue May 28, 7:34 AM) = 0
 }}}

 With the attached patch (sNext = Local time):
 {{{
 sNext (Wed May 29, 3:57 AM) >= sStart (Tue May 28, 7:34 AM) = 1
 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11562>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list