[mythtv-commits] Ticket #13299: Python Bindings fail to calculate date-time object

MythTV noreply at mythtv.org
Mon Jul 9 20:01:47 UTC 2018


#13299: Python Bindings fail to calculate date-time object
-------------------------------+--------------------------------
 Reporter:  rcrdnalor          |          Owner:  Raymond Wagner
     Type:  Patch - Bug Fix    |         Status:  new
 Priority:  minor              |      Milestone:  needs_triage
Component:  Bindings - Python  |        Version:  Unspecified
 Severity:  medium             |     Resolution:
 Keywords:                     |  Ticket locked:  0
-------------------------------+--------------------------------

Comment (by rcrdnalor):

 @ijc:
 Thank you again for reviewing my proposed patches.
 I see in your post that you are a lucky one not having time-zone troubles
 ;-)

 Following your suggestions, I provide an update of the patch:
 Comments have been added and the `None` type is used as sentinel.

 Interesting observation: The transition that gets deleted is the first
 one:
 {{{
 Transition(time=-576460752303423488, utc=None, local=None, offset=-75,
 abbrev='LMT', isdst=0)
 }}}
 The time=-576460752303423488 is F800000000000000 in hex notation or
 `2**59`,
 aka called Big_Bang time in zic, the zone information compiler.

 See https://www.daemon-systems.org/man/zic.8.html
 and
 http://tz.iana.narkive.com/rd7eYDmc/tz-tzfiles-contain-unix-epoch-for-the-
 first-transition-time

 The change was introduced late 2013 and 2014 and revised 26 days ago on
 https://github.com/eggert/tz/.
 This might explain, why I do not see this bug on ubuntu 14.04.

 Info about 'Remove Big bang hack':
 https://github.com/eggert/tz/commit/83c119f4d5d48ba37d73e42b0f12da3ae06b6c3f
 http://tz.iana.narkive.com/5DTeOBe7/tz-proposed-remove-big-bang-hack

 FWIW: I found these `-9223372036854775808 = NULL` entries from zdump in my
 old system (14.04) as well.
 It seems not to be related to the first transition mentioned above.

 Looking forward to future changes in the zoneinfo files, the attached
 conservative patch seems to be appropriate for now and follows the 'KISS'
 principle.

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


More information about the mythtv-commits mailing list