Skip to content

fix(util): use 24-hour time format - #17037

Closed
olivierverdier wants to merge 1 commit into
anomalyco:devfrom
olivierverdier:fix-24-hour-time-format
Closed

olivierverdier wants to merge 1 commit into
anomalyco:devfrom
olivierverdier:fix-24-hour-time-format

Conversation

@olivierverdier

@olivierverdier olivierverdier commented Mar 11, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #7208

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Locale.time() was in fact ignoring the locale and always displaying the time (for sessions at least?) in 12h format. I fixed it to use 24h format instead (for lack of better use of a locale). It also works better as an international default.

How did you verify your code works?

The change is a single line addition to an existing function. bun turbo typecheck passed.

Screenshots / recordings

Change is highlighed in red:

Screenshot 2026-03-11 at 13 46 39

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Mar 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Mar 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this May 11, 2026
@mtremr

mtremr commented May 18, 2026

Copy link
Copy Markdown

Can we revisit this PR? Sounds good.

@olivierverdier

Copy link
Copy Markdown
Author

Partly because of this, I switched now to https://pi.dev/ since

  • this kind of change is trivial to achieve with a plugin in pi
  • the pi team has a sane approach to issues/PR (check out the number of issues/PR at their repo)

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.

Add option to use 24-hour time format in session view

2 participants