We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c56a45f commit 0226286Copy full SHA for 0226286
1 file changed
tests/conftest.py
@@ -185,9 +185,7 @@ def func(arg):
185
elif unit == "y":
186
ret += relativedelta(years=num)
187
if iso:
188
- return ret.replace(tzinfo=None) # return datetime object and not string
189
- # NOTE this is not a full ISO 8601 format, but it's enough for our needs
190
- # return ret.strftime('%Y-%m-%dT%H:%M:%S') + ret.strftime('.%f')[:4] + 'Z'
+ return ret.isoformat(timespec="seconds")
191
return int(ret.timestamp())
192
return ""
193
0 commit comments