Skip to content

Customize 24h vs 12h time formatting globally #29

Closed as not planned
Closed as not planned

Description

@MikeShi42

Some users have a preference for 12h time instead of 24h time, today we do a mix of both depending on the UI they're looking at (sessions is primarily 12h, logs are primarily 24h) - we should allow users to globally toggle 12/24h time and update the time format across the app accordingly.

I've already started a bit of the implementation, but there is still a lot of way to go:

Todo:

  • Update all time formats around the app in UI components to accept timeFormat as a property
  • Update page components to inject timeFormat as a property to UI components (or shortcut this and just read from the provider directly)
  • Add UI for user preferences in the settings page somewhere.
  • Persist user preferences in localstorage

Activity

  1. treypisano commented on Sep 22, 2023

    @treypisano
    Contributor

    Hi @MikeShi42 , can give resolving this issue a try?

  2. MikeShi42 commented on Sep 22, 2023

    @MikeShi42
    ContributorAuthor

    Sounds good! Let me know if you need any help or pointers :) Feel free to hop in on our Discord if there's some implementations ideas you want to chat about.

    I'd also mention we have a hook called useLocalStorage that can help persisting the settings.

  3. treypisano commented on Oct 2, 2023

    @treypisano
    Contributor

    Hi @MikeShi42 , just want to let you know I'm still working on this, just needed some time to get familiar with the codebase.

  4. ptdatta commented on Feb 3, 2024

    @ptdatta

    @MikeShi42 Is it completed? I would like to give it a try?

  5. stupidly-logical commented on Dec 15, 2024

    @stupidly-logical

    Hi, Id like to work on this if its still needed.

  6. added a commit that references this issue on Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions