We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89bd994 commit 9911947Copy full SHA for 9911947
1 file changed
tests/conftest.py
@@ -185,7 +185,10 @@ def func(arg):
185
elif unit == "y":
186
ret += relativedelta(years=num)
187
if iso:
188
- return ret.isoformat(timespec="seconds")
+ # Return ISO 8601 formatted string with Z timezone indicator
189
+ # Example: 2025-04-17T03:17:07.923Z
190
+ from datetime import timezone
191
+ return ret.astimezone(timezone.utc).isoformat(timespec="milliseconds").replace("+00:00", "Z")
192
return int(ret.timestamp())
193
return ""
194
0 commit comments