1 parent 5019b5f commit 606db7cCopy full SHA for 606db7c
2 files changed
doc/api/core.rst
@@ -8,6 +8,10 @@ Core
8
of the :mod:`github2` package, but it is documented to aid contributors
9
to the package.
10
11
+.. autodata:: NAIVE(bool)
12
+
13
+ Set to ``False`` for timezone-aware :class:`datetime.datetime` objects
14
15
.. autofunction:: ghdate_to_datetime
16
.. autofunction:: datetime_to_ghdate
17
github2/core.py
@@ -13,8 +13,8 @@
COMMIT_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S"
GITHUB_TZ = tz.gettz("America/Los_Angeles")
-# Operate on naive datetime objects, this is the default for backwards
-# compatibility
+#: Operate on naive :class:`datetime.datetime` objects, this is the default
+#: for backwards compatibility
18
NAIVE = True
19
20
0 commit comments