python datetime .. grrr
Chris Lamb
chris at reproducible-builds.org
Mon Feb 13 19:20:06 UTC 2023
Larry Doolittle wrote:
> It's timezone handling in python3 datetime.
[…]
> doc_now = datetime.fromtimestamp(int(os.environ["SOURCE_DATE_EPOCH"]))
^^^^^^^^^^^^^^^^^^^^^^
Simply replacing this with "datetime.utcfromtimestamp" will make
this reproducible.
Hm, I don't believe this is Python 3.x specific behaviour as your
opening comment could imply; fromtimestamp has—or should I say had—the
same timezone-specific behaviour by design under Python 2.x.
Hope this helps.
Best wishes,
--
o
⬋ ⬊ Chris Lamb
o o reproducible-builds.org 💠
⬊ ⬋
o
More information about the rb-general
mailing list