diff options
author | Yobmod <yobmod@gmail.com> | 2021-08-02 17:24:18 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-08-02 17:24:18 +0100 |
commit | 6470ad4a413fb7fbd9f2d3b9da1720c13ffc92bb (patch) | |
tree | cec38180c3be988a35deb9126820195e8c41181b /git/objects/util.py | |
parent | d30bc0722ee32c501c021bde511640ff6620a203 (diff) | |
download | gitpython-6470ad4a413fb7fbd9f2d3b9da1720c13ffc92bb.tar.gz |
Fix parse_date typing 7
Diffstat (limited to 'git/objects/util.py')
-rw-r--r-- | git/objects/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/objects/util.py b/git/objects/util.py index 16d4c0ac..0b843301 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -187,7 +187,9 @@ def parse_date(string_date: Union[str, datetime]) -> Tuple[int, int]: offset = -int(utcoffset.total_seconds()) return int(string_date.astimezone(utc).timestamp()), offset else: - raise ValueError(f"string_date datetime object without tzinfo, {string_date}") + # should just return timestamp, 0? + return int(string_date.astimezone(utc).timestamp()), 0 + # raise ValueError(f"string_date datetime object without tzinfo, {string_date}") # git time try: |