Skip to content

Fix trycmd keygen snapshots to accept non-UTC timezone offsets#604

Open
jeffs wants to merge 1 commit intostr4d:mainfrom
jeffs:issue562-test-timezone
Open

Fix trycmd keygen snapshots to accept non-UTC timezone offsets#604
jeffs wants to merge 1 commit intostr4d:mainfrom
jeffs:issue562-test-timezone

Conversation

@jeffs
Copy link

@jeffs jeffs commented Mar 8, 2026

Summary

  • Remove the literal trailing Z from trycmd timestamp patterns in gen-stdout.toml and gen-output.out/key.txt
  • rage-keygen uses chrono::Local::now(), which produces timezone offsets like -05:00 on non-UTC systems; the [..] wildcard now matches both Z and offset suffixes

Fixes #562

The timestamp pattern ended with a literal Z, which only matches UTC.
Since rage-keygen uses Local::now(), non-UTC systems produce offsets
like -05:00, causing test failures. Remove the trailing Z so the
wildcard matches any timezone suffix.

Fixes str4d#562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gen-stdout.toml and gen-output.toml:teardown tests failed

1 participant