Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6470ad4

Browse files
committedAug 2, 2021
Fix parse_date typing 7
1 parent d30bc07 commit 6470ad4

File tree

2 files changed

+3
-567
lines changed

2 files changed

+3
-567
lines changed
 

‎git/objects/util.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ def parse_date(string_date: Union[str, datetime]) -> Tuple[int, int]:
187187
offset = -int(utcoffset.total_seconds())
188188
return int(string_date.astimezone(utc).timestamp()), offset
189189
else:
190-
raise ValueError(f"string_date datetime object without tzinfo, {string_date}")
190+
# should just return timestamp, 0?
191+
return int(string_date.astimezone(utc).timestamp()), 0
192+
# raise ValueError(f"string_date datetime object without tzinfo, {string_date}")
191193

192194
# git time
193195
try:

‎git/objects/util.py.97f6472e9bbb12cad7bbab8f367a99fe.tmp

-566
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.