1 parent b287bbc commit 3e4e8beCopy full SHA for 3e4e8be
2 files changed
doc/api/core.rst
@@ -12,6 +12,11 @@ Core
12
13
Set to ``False`` for timezone-aware :class:`datetime.datetime` objects
14
15
+.. autodata:: GITHUB_TZ(datetime.tzinfo)
16
+
17
+ Timezone used in output from GitHub API, currently defined as
18
+ ``America/Los_Angeles`` in the Olson database
19
20
.. autofunction:: string_to_datetime
21
22
.. autofunction:: datetime_to_ghdate
github2/core.py
@@ -11,6 +11,7 @@
11
# We need to manually mangle the timezone for commit date formatting because it
# uses -xx:xx format
COMMIT_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S"
+#: GitHub timezone used in API output
GITHUB_TZ = tz.gettz("America/Los_Angeles")
#: Operate on naive :class:`datetime.datetime` objects, this is the default
0 commit comments