Repository navigation
fix: local time comes from jiff; chrono is unmaintained (D566) - #120
Merged
Merged
Conversation
RUSTSEC-2026-0543 marks chrono unmaintained with no fixed release, so cargo-deny failed on every branch, master included. The strobe_Date offset and the projector log's timestamps now come from jiff, which bundles the zone database on Windows only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2BaQir6MZbp4JBpp3CZyT
Contributor
|
Claude finished @lnorton89's task in 12s —— View job Review of PR #120I read the diff against
The one thing the PR itself flags as open is the Windows app build. Check that CI's |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RUSTSEC-2026-0543 marks
chronounmaintained, every version, with no fixed release. Since thencargo-denyfails on every branch, master included, which is why #118 and #110 are red. Only our own code usedchrono: thestrobe_DateUTC offset (strobe-app/src/localtime.rs, D112) and the projector log's timestamps (strobe-projector/src/audit.rs). Both now usejiff, one of the replacements the advisory names. There's a maintained crate to move to, so I didn't add adeny.tomlignore (D530 keeps those for crates with no alternative).TimeZone::system().to_offset(now).seconds().nowcomes fromTimestamp::try_from(SystemTime), so a clock jiff can't represent reads as offset 0 rather than panicking. It still runs only inLocalDate::refresh, never on the frame path.%Y-%m-%dT%H:%M:%S%zformat, so existingcommands.logfiles keep one line shape.tzdb-bundle-platformembeds one instrobe.exeon Windows only, a few hundred KB. Without it every Windows machine would read as UTC.time, already in the tree throughrosc, was ruled out because its local-offset call refuses in multithreaded processes on Unix. The reasoning is in D566.THIRD_PARTY.mdandDECISIONS_BY_AREA.mdare regenerated. The projector README is updated. The workspaceCargo.tomlcomment cited D111 forchrono; it now cites D112, which is the right decision.Test plan
Run in a Linux cloud container (no GPU, no real Windows machine):
cargo deny --all-features check: advisories ok, bans ok, licenses ok, sources ok.cargo test -p strobe-app localtime: 4 passed, includingthe_system_offset_is_a_real_zone_offset_and_now_is_a_valid_date.cargo test -p strobe-projector: all pass, includingaudit::tests::lines_are_one_record_each_and_rotate.cargo clippy -p strobe-app -p strobe-projector --all-targets --all-features -- -D warnings: clean.cargo clippy -p strobe-projector --all-targets --all-features --target x86_64-pc-windows-msvc -- -D warnings: clean. This compiles jiff's bundled database for Windows.cargo test -p strobe-conventions: 59 passed.cargo xtask decisions --checkandcargo xtask credits --check: pass.cargo fmt --all -- --check: clean.Not run: the full
cargo test --workspaceand workspace-wide clippy (only the two crates that changed), and the Windows app build. QuickJS keepsstrobe-appout of the cross-check, so CI'swindowsjob is the first build of the app with jiff on Windows. Nobody has watched a Windows machine read its real zone through jiff yet.Checklist
cargo fmt --all -- --checkpassescargo clippy … -D warningspasses (for the changed crates; CI runs the workspace)cargo testpasses (for the changed crates and the conventions tests; CI runs the workspace)strobe-projectorunwrap/expect/panic!unsaferefresh)docs/ROADMAP.mdnot updated: this is a dependency swap, not a roadmap item. The decision is logged as D566.fix:CHANGELOG.mdnot hand-editedGenerated by Claude Code