We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9645373 commit 49a89c9Copy full SHA for 49a89c9
src/setuptools_scm/git.py
@@ -5,6 +5,7 @@
5
import os
6
import re
7
import shlex
8
+import sys
9
import warnings
10
11
from datetime import date
@@ -119,6 +120,8 @@ def parse_timestamp(timestamp_text: str) -> date | None:
119
120
if "%c" in timestamp_text:
121
log.warning("git too old -> timestamp is %r", timestamp_text)
122
return None
123
+ if sys.version_info < (3, 11) and timestamp_text.endswith("Z"):
124
+ timestamp_text = timestamp_text[:-1] + "+00:00"
125
return datetime.fromisoformat(timestamp_text).date()
126
127
res = run_git(
0 commit comments