Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86e66e0

Browse files
committed
Ensure created_at and updated_at are datetimes
1 parent58eef77 commit86e66e0

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)

[8]ページ先頭

©2009-2025 Movatter.jp