Commit b0fdb5fe authored by Jérome Perrin's avatar Jérome Perrin Committed by Kirill Smelkov

gen_testdata: do not depend on machine timezone

Initialize the timezone setting when setting up controlled time.time,
to GMT-3 because the current test data was created with this timezone.

/reviewed-by @kirr
/reviewed-at nexedi/zodbtools!31
parent 593bd165
......@@ -92,6 +92,8 @@ def hex64(packed):
return '0x%016x' % unpack64(packed)
# make time.time() predictable
os.environ['TZ'] = 'GMT-3'
time.tzset()
_xtime0 = time.mktime(time.strptime("04 Jan 1979", "%d %b %Y"))
def xtime_reset():
global _xtime
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment