hyperdxio / hyperdx

Resolve production issues, fast. An open source observability platform unifying session replays, logs, metrics, traces and errors powered by Clickhouse and OpenTelemetry.
https://hyperdx.io/
MIT License
6.55k stars 184 forks source link

Customize 24h vs 12h time formatting globally #29

Open MikeShi42 opened 11 months ago

MikeShi42 commented 11 months ago

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:

treypisano commented 11 months ago

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

MikeShi42 commented 11 months ago

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.

treypisano commented 11 months ago

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

ptdatta commented 7 months ago

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