From 667ebdc210869ff3104c200a8b87cdbd5b78f3e8 Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Fri, 5 Jun 2026 12:05:32 +0200 Subject: [PATCH] fix(bhyve): EU display dates (DD.mmm.YYYY) per AGENTS date rule (Sam & Claude) User-facing timestamps in run-bhyve-test.sh used the ambiguous numeric form %Y-%m-%d. Switch to European display (date +%d.%b.%Y %H:%M:%S). Log filename keeps sortable ISO 8601 basic (machine artifact, per the rule's internal-storage exemption). Co-Authored-By: Claude Opus 4.8 --- scripts/run-bhyve-test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/run-bhyve-test.sh b/scripts/run-bhyve-test.sh index df4338d0..4ee35c24 100755 --- a/scripts/run-bhyve-test.sh +++ b/scripts/run-bhyve-test.sh @@ -14,15 +14,18 @@ LOG_DIR="${PWD}/logs" mkdir -p "$LOG_DIR" +# Log filename uses sortable ISO 8601 basic (machine artifact name, per the +# AGENTS.md date rule's internal-storage exemption). User-facing timestamps +# below use European display format (DD.mmm.YYYY HH:MM:SS). LOG_FILE="${LOG_DIR}/bhyve-test-$(date +%Y%m%d-%H%M%S).log" -echo "Test started: $(date)" > "$LOG_FILE" +echo "Test started: $(date '+%d.%b.%Y %H:%M:%S')" > "$LOG_FILE" echo "Log: $LOG_FILE" >&2 echo "" >> "$LOG_FILE" # Run the actual test script, capturing both stdout and stderr echo "=== BHYVE TEST START ===" >> "$LOG_FILE" echo "Command: $(pwd)/scripts/bhyve-test.sh $*" >> "$LOG_FILE" -echo "Started: $(date '+%Y-%m-%d %H:%M:%S')" >> "$LOG_FILE" +echo "Started: $(date '+%d.%b.%Y %H:%M:%S')" >> "$LOG_FILE" echo "" >> "$LOG_FILE" # Run with tee to show output AND log it. Pass through any args (ISO path, --name). @@ -31,7 +34,7 @@ EXIT_CODE=$? echo "" >> "$LOG_FILE" echo "=== BHYVE TEST END ===" >> "$LOG_FILE" -echo "Ended: $(date '+%Y-%m-%d %H:%M:%S')" >> "$LOG_FILE" +echo "Ended: $(date '+%d.%b.%Y %H:%M:%S')" >> "$LOG_FILE" echo "Exit code: $EXIT_CODE" >> "$LOG_FILE" echo "" >> "$LOG_FILE"