# HG changeset patch # User Paul Boddie # Date 1442167275 -7200 # Node ID 3c67c1c63c5d5ead39ad4d9f1e8f9185c80b65c9 # Parent 2962011812c08669b9b8e55f1c5ab271dae40a4e Properly fixed the datetime used to test expiry of free/busy offer periods. diff -r 2962011812c0 -r 3c67c1c63c5d imip_store.py --- a/imip_store.py Sun Sep 13 19:00:15 2015 +0200 +++ b/imip_store.py Sun Sep 13 20:01:15 2015 +0200 @@ -597,7 +597,7 @@ offers = [] expired = [] - now = to_timezone(datetime.now(), "UTC") + now = to_timezone(datetime.utcnow(), "UTC") # Expire old offers and save the collection if modified.