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

Update speedtest.py line 960 - #808

Closed
josefoviedo wants to merge 1 commit into
sivel:masterfrom
josefoviedo:master
Closed

josefoviedo wants to merge 1 commit into
sivel:masterfrom
josefoviedo:master

Conversation

@josefoviedo

Copy link
Copy Markdown

❯ 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()

@che-wf che-wf left a comment •

Copy link
Copy Markdown

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
Copy Markdown

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

@sivel sivel closed this Apr 30, 2026
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.

4 participants