mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Set timezone info when reading datetimes
This commit is contained in:
@@ -24,10 +24,6 @@ class TLObject:
|
||||
return '[{}]'.format(
|
||||
', '.join(TLObject.pretty_format(x) for x in obj)
|
||||
)
|
||||
elif isinstance(obj, datetime):
|
||||
return 'datetime.utcfromtimestamp({})'.format(
|
||||
int(obj.timestamp())
|
||||
)
|
||||
else:
|
||||
return repr(obj)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user