From 4829a3a2e1a31c84405e15d13379c4d88ce31e20 Mon Sep 17 00:00:00 2001 From: Jeffrey de Lange Date: Mon, 2 Dec 2024 11:39:57 +0100 Subject: [PATCH 1/2] Make sure time is correct --- AoCH/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AoCH/__init__.py b/AoCH/__init__.py index 2bedbc4..de84326 100644 --- a/AoCH/__init__.py +++ b/AoCH/__init__.py @@ -146,8 +146,8 @@ def return_day_data(members, total_members, today): for key, value in members.items(): if str(this_day) in value["completion_day_level"]: - # Today +6 hours - time_started = datetime(year=this_year, month=12, day=this_day, hour=6) + # Today +6 hours (with timezone) + time_started = datetime(year=this_year, month=12, day=this_day, hour=5) person = { "name": value["name"], From 4d3caa06b3d27095a757936d011bdb62dcabc7a9 Mon Sep 17 00:00:00 2001 From: Jeffrey de Lange Date: Mon, 2 Dec 2024 14:24:00 +0100 Subject: [PATCH 2/2] Clarification on "time_started" having off by one Co-authored-by: Maarten Sijm <9739541+mpsijm@users.noreply.github.com> --- AoCH/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AoCH/__init__.py b/AoCH/__init__.py index de84326..f00a7db 100644 --- a/AoCH/__init__.py +++ b/AoCH/__init__.py @@ -146,7 +146,7 @@ def return_day_data(members, total_members, today): for key, value in members.items(): if str(this_day) in value["completion_day_level"]: - # Today +6 hours (with timezone) + # Today +5 hours (server runs UTC) time_started = datetime(year=this_year, month=12, day=this_day, hour=5) person = {