Skip to content

Conversation

@jcristau
Copy link
Contributor

/usr/local/bin/run-task:118: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  now = datetime.datetime.utcnow().isoformat().encode("utf-8")

This slightly changes the output, replacing Z with +00:00 for the timezone component.

```
/usr/local/bin/run-task:118: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  now = datetime.datetime.utcnow().isoformat().encode("utf-8")
```

This slightly changes the output, replacing `Z` with `+00:00` for the
timezone component.
@jcristau jcristau requested review from a team and Eijebong January 29, 2025 14:34
@jcristau jcristau merged commit 7e01bbb into taskcluster:main Jan 29, 2025
21 checks passed
@jcristau jcristau deleted the utcnow branch January 29, 2025 14:47
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.

2 participants