mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
Convert datetimes to local timezone by default
This commit is contained in:
parent
d4b6447d0f
commit
05c5bcb723
@ -412,7 +412,7 @@ def _convert(field_type, value):
|
||||
return value
|
||||
|
||||
if field_type == datetime:
|
||||
return datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f%z")
|
||||
return datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f%z").astimezone()
|
||||
|
||||
if field_type == date:
|
||||
return date.fromisoformat(value)
|
||||
|
Loading…
Reference in New Issue
Block a user