diff options
m--------- | git/ext/gitdb | 0 | ||||
-rw-r--r-- | git/objects/commit.py | 8 |
2 files changed, 6 insertions, 2 deletions
diff --git a/git/ext/gitdb b/git/ext/gitdb -Subproject 9aae93ea584c8cf9d1539a60e41c5c37119401d +Subproject 2389b75280efb1a63e6ea578eae7f897fd4beb1 diff --git a/git/objects/commit.py b/git/objects/commit.py index 376b451d..d067b718 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -27,7 +27,10 @@ from git.compat import text_type from time import ( time, - altzone + daylight, + altzone, + timezone, + localtime ) import os from io import BytesIO @@ -327,7 +330,8 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): # PARSE THE DATES unix_time = int(time()) - offset = altzone + is_dst = daylight and localtime().tm_isdst > 0 + offset = altzone if is_dst else timezone author_date_str = env.get(cls.env_author_date, '') if author_date: |