Repository navigation
feat: add time_format config option for 12h AM/PM timestamps - #34
Merged
Merged
Conversation
Introduces a top-level time_format config key controlling timestamp style in save-session output: - "24h" (default, backward compatible) — produces 14:32 - "12h" — produces 2:32 PM Changes: - save-session.sh: read time_format config, use %-I:%M %p for 12h - save-session.sh: expand header validation regex to accept both formats - config.example.json: document new option with 24h default - 10 new tests: config presence, format output, regex acceptance for 24h/12h/AM/PM/double-digit, rejection of garbage, default fallback Inspired by josemoreno801-netizen's PR #25. Supersedes #25. Co-Authored-By: Max <noreply>
fdaviddpt
pushed a commit
that referenced
this pull request
Apr 25, 2026
Was added in PR #34 but missing from the configuration documentation. Co-Authored-By: Max <noreply>
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
Adds a
time_formatconfig option ("24h"default,"12h"available) to control timestamp style in daily memory logs.Changes
time_formatfrom config, uses%-I:%M %pfor 12h or%H:%Mfor 24h14:32and2:32 PM24hdefaultPortability
Verified
%-I(no-pad hour) works on both macOS BSDdateand GNUdate.Inspired by @josemoreno801-netizen's PR #25 — same feature, rebuilt on current main with tests. Supersedes #25.
Full suite: 220 passed, 99% coverage.