We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5324ac commit 71f17c9Copy full SHA for 71f17c9
1 file changed
github2/core.py
@@ -82,9 +82,10 @@ def datetime_to_commitdate(datetime_):
82
def datetime_to_isodate(datetime_):
83
"""Convert Python datetime to GitHub date string
84
85
+ .. note:: Supports naive and timezone-aware datetimes
86
+
87
:param str datetime_: datetime object to convert
88
- .. note:: Supports naive and timezone-aware datetimes
89
"""
90
if not datetime_.tzinfo:
91
datetime_ = datetime_.replace(tzinfo=tz.tzutc())
0 commit comments