Commit fa972408 authored by Jérome Perrin's avatar Jérome Perrin

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.
parent cc397304
......@@ -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