Skip to content

Commit 9a78243

Browse files
committed
Use ISO time format in collated output
1 parent 9a5d0cf commit 9a78243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/subcommands/reporting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def rawdataMain(args: argparse.Namespace) -> None:
389389

390390
def collateMain(args: argparse.Namespace) -> None:
391391
# Include the current date and time
392-
now = datetime.datetime.now(datetime.UTC)
392+
now = datetime.datetime.now(datetime.UTC).replace(microsecond=0)
393393

394394
# Include git revsion or RTLMeter
395395
rltmeterVersion = subprocess.run(
@@ -444,7 +444,7 @@ def collateMain(args: argparse.Namespace) -> None:
444444

445445
# Assemble final record
446446
result = {
447-
"date": now.strftime("%Y/%m/%d-%H:%M:%S"),
447+
"date": now.isoformat(),
448448
"RTLMeterVersion": rltmeterVersion,
449449
"VerilatorVersion": verilatorVersion,
450450
"cpuinfo": cpuinfo,

0 commit comments

Comments
 (0)