You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bounty proposal] fix(clickup): a UTC due date is stored hours early and an offset one is silently dropped ($75 proposed) #15155
tz is the user's pytz zone and pytz.localize is only valid on a naive datetime, so two inputs the model routinely produces break:
A UTC timestamp lands at the wrong moment.2026-09-21T17:00:00Z has its Z stripped and the remaining wall clock is localized as the user's local time. For Asia/Kolkata the task is stored at 11:30 UTC, 5.5 hours early. Run against the shipped code path:
An offset timestamp loses its due date entirely.2026-09-21T17:00:00+05:30 parses as aware, so localize raises ValueError: Not naive datetime (tzinfo is already set). The surrounding except Exception prints "Could not parse due date" and the key is never added, so the task is created with no due date, the tool still answers ✅ Task created in <list>, and notify_task_created(uid, task_name, list_name, due_date) notifies the user with the due date that was dropped.
Fix
Normalize a trailing Z to +00:00 and only call localize when the parsed datetime is naive; an aware value already identifies the instant.
PR with the fix and tests follows. The manifest lane has no pytz while production pins pytz==2023.3, so the tests install a small stand-in whose localize refuses an aware datetime the way pytz does, otherwise they would pass on main for the wrong reason.
Bounty: $75 proposed, since one case silently discards the due date while telling the user it was set.
Activity