[mythtv-commits] Ticket #8585: Qt:ISODate/mysql icompatibility

MythTV mythtv at cvs.mythtv.org
Sun Jun 20 13:21:36 UTC 2010


#8585: Qt:ISODate/mysql icompatibility
----------------------------------+-----------------------------------------
 Reporter:  eltorio@…             |       Owner:  ijr        
     Type:  defect                |      Status:  new        
 Priority:  major                 |   Milestone:  unknown    
Component:  MythTV - General      |     Version:  Unspecified
 Severity:  medium                |     Mlocked:  0          
----------------------------------+-----------------------------------------
 According to MySQL documentation ISO-8601 date format is not a correct
 format for datetime fields:[[BR]]
 MySQL 5.5 [http://dev.mysql.com/doc/refman/5.5/en/datetime.html datetime
 doc][[BR]]
 MySQL 5.1 [http://dev.mysql.com/doc/refman/5.1/en/datetime.html datetime
 doc][[BR]]

 In fact on mysql 5.1 giving a string like "yyyy-MM-ddThh:mm:ss" works even
 it is not supported, but in 5.5 (5.5.4-m3) it does not work and for
 example "2010-06-20T14:13:00" is recognized as "2010-06-21 00:00:00"
 !!![[BR]]

 So
 On latest MySQL program guide does not work, and on liveTV the name of the
 current program is not correct and shows the program starting next day at
 00:00

 This is due to the use of DateTime::toString(Qt::ISODate) wich return a
 correct ISO-8601 date but wich is an incorrect MySQL datetime field, a
 correct field should be obtained for example with aDateTime.toString
 ("yyyy-MM-dd hh:mm:ss")

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8585>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list