Use locale for story times
This commit is contained in:
@@ -213,7 +213,8 @@ class Story(AsanaObject):
|
|||||||
|
|
||||||
def created_at(self):
|
def created_at(self):
|
||||||
if 'created_at' in self.object_dict:
|
if 'created_at' in self.object_dict:
|
||||||
return dateutil.parser.parse(self.object_dict['created_at'])
|
return dateutil.parser.parse(self.object_dict['created_at']) \
|
||||||
|
.replace(tzinfo=timezone.utc).astimezone(tz=None)
|
||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user