From 11bde9e12df9afcbf8d335e4bee0be7a257f65e4 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 18 Feb 2024 13:27:24 +0100 Subject: [PATCH] Updated chore due date to ISO 8601 format Ensured that the 'due_date' variable is now formatted in strict ISO 8601 compliance by removing microseconds and appending 'Z' to indicate UTC. This change aids in consistent date-time parsing across different systems and services that expect a standardized timestamp without fractional seconds. --- scripts/chores.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/chores.py b/scripts/chores.py index 8e8aa04..5efc0ed 100644 --- a/scripts/chores.py +++ b/scripts/chores.py @@ -26,7 +26,7 @@ CHORES = ( ) -due_date = (datetime.utcnow() + timedelta(days=EXPIRY_DAYS)).isoformat() +due_date = (datetime.utcnow() + timedelta(days=EXPIRY_DAYS)).isoformat().split(".")[0] + "Z" payload = { "title": "Weekly Chores",