[mythtv-commits] Ticket #4279: Also return the current timestamp in an ISO date format.

MythTV mythtv at cvs.mythtv.org
Fri Dec 7 02:57:13 UTC 2007


#4279: Also return the current timestamp in an ISO date format.
------------------------------------------------+---------------------------
 Reporter:  Andrew Ruthven <andrew at etc.gen.nz>  |       Owner:  ijr    
     Type:  patch                               |      Status:  new    
 Priority:  minor                               |   Milestone:  unknown
Component:  mythtv                              |     Version:  head   
 Severity:  medium                              |     Mlocked:  0      
------------------------------------------------+---------------------------
 Currently the XML returns the timestamp using localised formats which
 looks like:

 <Status version="0.21.20071119-1" protoVer="36" time="4:36 PM" date="Tue
 Nov 27 2007" >

 Or for French:

 <Status version="0.20.20070821-1" protoVer="31" time="22:21" date="mar nov
 27 2007" >

 The attached patch adds a timestamp attribute which returns the timestamp
 using ISO formatting which bypasses the pesky locale differences.  The
 output looks like:

 <Status version="0.21.20071202-1" protoVer="36"
 ISODate="2007-12-07T11:06:27" time="11:06 AM" date="12/7/2007" >

 This will make parsing of the timestamp for test cases much easier for my
 mythtv-status package.

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


More information about the mythtv-commits mailing list