Merge pull request #1 from cb0n3y/fix-deprication-in-timedate-module-with-python3.13

Everything is working as expected.
This commit is contained in:
cb0n3y 2025-04-18 11:49:50 +02:00 committed by GitHub
commit 76fb840061
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -957,7 +957,8 @@ class SpeedtestResults(object):
self.client = client or {}
self._share = None
self.timestamp = '%sZ' % datetime.datetime.utcnow().isoformat()
# self.timestamp = '%sZ' % datetime.datetime.utcnow().isoformat()
self.timestamp = '%sZ' % datetime.datetime.now(datetime.timezone.utc).isoformat()
self.bytes_received = 0
self.bytes_sent = 0