Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Conversation

@josefoviedo
Copy link

❯ speedtest
Retrieving speedtest.net configuration...
/opt/homebrew/bin/speedtest:960: 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).
self.timestamp = '%sZ' % datetime.datetime.utcnow().isoformat()

❯ speedtest
Retrieving speedtest.net configuration...
/opt/homebrew/bin/speedtest:960: 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).
  self.timestamp = '%sZ' % datetime.datetime.utcnow().isoformat()
Copy link

@che-wf che-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I came here to do the same thing. It does look like there's another PR for the same that might be better: #803

@LuckyCoders
Copy link

self.timestamp = datetime.datetime.now(datetime.UTC).isoformat().replace('+00:00', 'Z')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants