Skip to content

Commit

Permalink
Merge pull request #55 from zopefoundation/fix-historical_connections…
Browse files Browse the repository at this point in the history
….txt-for-non-utc

Fixed test failure introduced in pull-request 51
  • Loading branch information
tseaver committed Apr 29, 2016
2 parents 2d12e59 + d50a4c8 commit 9a393ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ZODB/historical_connections.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====
Expand Down

0 comments on commit 9a393ef

Please sign in to comment.