Bonneannee module: fix timezone

This commit is contained in:
nemunaire 2014-10-04 07:34:30 +02:00
parent 5d5030efe1
commit 49bfcdcae5

View File

@ -15,7 +15,7 @@ yr = datetime.now(timezone.utc).year
yrn = datetime.now(timezone.utc).year + 1 yrn = datetime.now(timezone.utc).year + 1
def load(context): def load(context):
d = datetime(yrn, 1, 1, 0, 0, 0) - datetime.now(timezone.utc) d = datetime(yrn, 1, 1, 0, 0, 0, 0, timezone.utc) - datetime.now(timezone.utc)
add_event(ModuleEvent(interval=0, offset=d.total_seconds(), call=bonneannee)) add_event(ModuleEvent(interval=0, offset=d.total_seconds(), call=bonneannee))
def bonneannee(): def bonneannee():