Skip to content

Commit 0226286

Browse files
committed
Fix iso time
1 parent c56a45f commit 0226286

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ def func(arg):
185185
elif unit == "y":
186186
ret += relativedelta(years=num)
187187
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'
188+
return ret.isoformat(timespec="seconds")
191189
return int(ret.timestamp())
192190
return ""
193191

0 commit comments

Comments
 (0)