Skip to content

fix: replace deprecated datetime.utcnow() with timezone-aware alternative - #89

Open
Mubashir78 wants to merge 1 commit into
Duskript:mainfrom
Mubashir78:main
Open

fix: replace deprecated datetime.utcnow() with timezone-aware alternative#89
Mubashir78 wants to merge 1 commit into
Duskript:mainfrom
Mubashir78:main

Conversation

@Mubashir78

Copy link
Copy Markdown

Closes #17

Replaced all datetime.utcnow() calls with datetime.now(timezone.utc) to fix DeprecationWarning on Python 3.12+.

Changes

  • webui/api/routes.py:6460 — replaced inline utcnow() import + call
  • scripts/clawforge-issue-client-token.py:105,166,171 — replaced 3 utcnow() calls

The output format is preserved: +00:00 is replaced with Z where applicable.

…tive

- Replaced all utcnow() calls across webui/api/routes.py and
  scripts/clawforge-issue-client-token.py with
  datetime.now(dt.timezone.utc) to fix DeprecationWarning
  on Python 3.12+

Closes Duskript#17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tech-debt] deprecated/utcnow: webui/api/routes.py:6134 — Deprecated: utcnow() -> datetime.now(timezone.utc)

1 participant