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 b866ae7 commit 4fc8a83Copy full SHA for 4fc8a83
atlassian/bitbucket/base.py
@@ -164,7 +164,10 @@ def get_time(self, id):
164
# The format contains a : in the timezone which is supported from 3.7 on.
165
if sys.version_info <= (3, 7):
166
value_str = RE_TIMEZONE.sub(r"\1\2", value_str)
167
- value = datetime.strptime(value_str, self.CONF_TIMEFORMAT)
+ try:
168
+ value = datetime.strptime(value_str, self.CONF_TIMEFORMAT)
169
+ except ValueError:
170
+ value = datetime.strptime(value_str, "%Y-%m-%dT%H:%M:%S.%fZ", tzinfo="UTC")
171
else:
172
value = value_str
173
0 commit comments