Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change .utcnow() to .now(datetime.UTC) (deprecated) #801

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MGMCN
Copy link

@MGMCN MGMCN commented Nov 18, 2023

When i run command speedtest-cli on my MacBook(Sonoma14.1.1) with Python3.12.

❯ speedtest-cli
Retrieving speedtest.net configuration...
/opt/homebrew/bin/speedtest-cli: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()

This method will be deprecated in future versions of python-datetime and it is recommended to change it now. Thank you.

@MGMCN
Copy link
Author

MGMCN commented Nov 18, 2023

@sivel
I would appreciate it if you could review this small change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant