Commit 9a393efc authored by Tres Seaver's avatar Tres Seaver

Merge pull request #55 from zopefoundation/fix-historical_connections.txt-for-non-utc

Fixed test failure introduced in pull-request 51
parents 2d12e596 d50a4c87
...@@ -22,7 +22,8 @@ Historical Connections ...@@ -22,7 +22,8 @@ Historical Connections
... time.time = faux_time_time ... time.time = faux_time_time
... time.sleep = faux_time_sleep ... time.sleep = faux_time_sleep
>>> def utcnow(): >>> def utcnow():
... return datetime.datetime.fromtimestamp(_now) ... mus = (int(_now % 1 * 1000000), )
... return datetime.datetime(*time.gmtime(_now)[:6] + mus)
Usage 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