8000 Ensure created_at and updated_at are datetimes · pythonthings/github3.py@86e66e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86e66e0

Browse files
committed
Ensure created_at and updated_at are datetimes
1 parent 58eef77 commit 86e66e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github3/gists/comment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ def _update_attributes(self, comment):
6161
self.body = comment['body']
6262
self.body_html = comment['body_html']
6363
self.body_text = comment['body_text']
64-
self.created_at = comment['created_at']
64+
self.created_at = self._strptime(comment['created_at'])
6565
self.id = comment['id']
66-
self.updated_at = comment['updated_at']
66+
self.updated_at = self._strptime(comment['updated_at'])
6767
self.user = self._class_attribute(
6868
comment, 'user', users.ShortUser, self,
6969
)

0 commit comments

Comments
 (0)
0