Skip to content

Commit 7ef4a9b

Browse files
Fix run_id format to be filename-safe
Remove colons from timestamp format to avoid 'Invalid argument' errors when creating log files. Changes from ISO format (2026-02-05T00:21:57Z) to compact format (20260205T002157Z). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 82ef039 commit 7ef4a9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xfer/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
# Helpers
5555
# -----------------------------
5656
def now_run_id() -> str:
57-
ts = dt.datetime.utcnow().replace(microsecond=0).isoformat() + "Z"
57+
# Use filename-safe format (no colons)
58+
ts = dt.datetime.utcnow().strftime("%Y%m%dT%H%M%SZ")
5859
rnd = os.urandom(3).hex()
5960
return f"{ts}_{rnd}"
6061

0 commit comments

Comments
 (0)