Skip to content

Commit 3e4e8be

Browse files
committed
Document core.GITHUB_TZ.
1 parent b287bbc commit 3e4e8be

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

doc/api/core.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Core
1212

1313
Set to ``False`` for timezone-aware :class:`datetime.datetime` objects
1414

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+
1520
.. autofunction:: string_to_datetime
1621

1722
.. autofunction:: datetime_to_ghdate

github2/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# We need to manually mangle the timezone for commit date formatting because it
1212
# uses -xx:xx format
1313
COMMIT_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S"
14+
#: GitHub timezone used in API output
1415
GITHUB_TZ = tz.gettz("America/Los_Angeles")
1516

1617
#: Operate on naive :class:`datetime.datetime` objects, this is the default

0 commit comments

Comments
 (0)