Updated chore due date to ISO 8601 format
All checks were successful
/ chores (push) Successful in 19s

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.
This commit is contained in:
Kumi 2024-02-18 13:27:24 +01:00
parent d5fe6d18a4
commit 11bde9e12d
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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",