2015-09-13 | Paul Boddie | raw files shortlog changelog graph | Properly fixed the datetime used to test expiry of free/busy offer periods. | |
imip_store.py (file) |
1.1 --- a/imip_store.py Sun Sep 13 19:00:15 2015 +0200 1.2 +++ b/imip_store.py Sun Sep 13 20:01:15 2015 +0200 1.3 @@ -597,7 +597,7 @@ 1.4 1.5 offers = [] 1.6 expired = [] 1.7 - now = to_timezone(datetime.now(), "UTC") 1.8 + now = to_timezone(datetime.utcnow(), "UTC") 1.9 1.10 # Expire old offers and save the collection if modified. 1.11