Commit d50a4c87 authored by Jim Fulton's avatar Jim Fulton

Fixed test failure introduced in https://github.com/zopefoundation/ZODB/pull/51

The PR depended on system time being UTC.
parent b83ac1c2
......@@ -22,7 +22,8 @@ Historical Connections
... time.time = faux_time_time
... time.sleep = faux_time_sleep
>>> def utcnow():
... return datetime.datetime.fromtimestamp(_now)
... mus = (int(_now % 1 * 1000000), )
... return datetime.datetime(*time.gmtime(_now)[:6] + mus)
Usage
=====
......
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