[mythtv-commits] Ticket #13622: Python Bindings: traceback in datetime.timestamp()

MythTV noreply at mythtv.org
Fri May 22 16:53:05 UTC 2020


#13622: Python Bindings: traceback in datetime.timestamp()
----------------------------------+---------------------------
 Reporter:  rcrdnalor             |          Owner:  rcrdnalor
     Type:  Bug Report - General  |         Status:  assigned
 Priority:  minor                 |      Milestone:  31.1
Component:  Bindings - Python     |        Version:  v31-fixes
 Severity:  medium                |     Resolution:
 Keywords:  Python timestamp      |  Ticket locked:  0
----------------------------------+---------------------------

Comment (by richardfearn):

 As a workaround, I'm doing this:

 {{{
 naive_datetime = mythtv_datetime.asnaiveutc()
 python_datetime = datetime(naive_datetime.year, naive_datetime.month,
 naive_datetime.day,
                            naive_datetime.hour, naive_datetime.minute,
                            tzinfo=pytz.utc)
 }}}

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13622#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list