10000 Convert Release.published_at attribute to a datetime · nikicat/github3.py@525435c · GitHub
[go: up one dir, main page]

Skip to content

Commit 525435c

Browse files
committed
Convert Release.published_at attribute to a datetime
1 parent 8f46a4a commit 525435c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

AUTHORS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ Contributors
5858
- Vincent Driessen (@nvie)
5959

6060
- Philip Chimento (@ptomato)
61+
62+
- Benjamin Gilbert (@bgilbert)

github3/repos/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, release, session=None):
3838
#; Boolean whether release is a prelease
3939
self.prerelease = release.get('prerelease')
4040
#: Date the release was published
41-
self.published_at = release.get('published_at')
41+
self.published_at = self._strptime(release.get('published_at'))
4242
#: Name of the tag
4343
self.tag_name = release.get('tag_name')
4444
#: "Commit" that this release targets

0 commit comments

Comments
 (0)
0