Bonneannee module: fix timezone
This commit is contained in:
parent
5d5030efe1
commit
49bfcdcae5
@ -15,7 +15,7 @@ yr = datetime.now(timezone.utc).year
|
||||
yrn = datetime.now(timezone.utc).year + 1
|
||||
|
||||
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))
|
||||
|
||||
def bonneannee():
|
||||
|
Loading…
Reference in New Issue
Block a user