[mythtv-commits] Ticket #12962: Problem programming recording using Mythweb due to SQL error in 'datatime'

MythTV noreply at mythtv.org
Fri Dec 23 21:30:27 UTC 2016


#12962: Problem programming recording using Mythweb due to SQL error in 'datatime'
-------------------------------------+-------------------------------------
     Reporter:  kmpatel@…            |      Owner:  stuarta
         Type:  Bug Report -         |     Status:  new
  General                            |
     Priority:  minor                |  Milestone:  unknown
    Component:  Plugin - MythWeb     |    Version:  0.28.0
     Severity:  medium               |   Keywords:  mythweb, SQL, datetime,
Ticket locked:  0                    |  recording, scheduling
-------------------------------------+-------------------------------------
 Error is occurring when trying to schedule recording via Mythweb.
 Specific conditions: distro is Ubuntu 16.04, mythtv is
 2:0.28.0+fixes.20160413.15cf421-0ubuntu2, mysql is
 5.7.16-0ubuntu0.16.04.1, mythconverg is 1344 migrated/upgraded from
 mythweb v0.27 (1317?)

 In Mythweb, the following error is received:

 ''SQL Error: Incorrect datetime value: '00:00:00' for column 'next_record'
 ''


 Specifically, line 348 of
 /usr/share/mythtv/mythweb/modules/tv/classes/Schedule.php has been coded
 (actually modified as compared to mythweb v0.28 in ubuntu 14.04) to use
 00:00:00 as 'datetime' for 'next_record', 'last_record', and
 'last_delete'. This produces the error.

 When ./Schedule.php is modified to use NULL as datetime instead, Mythweb
 is able to schedule recording as normal.

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


More information about the mythtv-commits mailing list