feat(web): add configurable datetime format preference#1623
Conversation
Introduce persisted date/time format preference values and extend date formatting helpers to support locale and ISO 8601 modes. Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Assisted-by: openai/gpt-5.3-codex on opencode
Read the stored datetime display mode in web UI surfaces and consistently format notification, account, token, and upgrade dates using the selected mode. Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Assisted-by: openai/gpt-5.3-codex on opencode
Add English translation keys for the new date and time format preference and its available options. Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Assisted-by: openai/gpt-5.3-codex on opencode
Validate persisted datetime format values before use and make test message timestamp formatting honor the active app language in locale mode. Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Assisted-by: openai/gpt-5.3-codex on opencode
|
It is not clear to me why this is necessary. Chrome and Firefox on Android and on desktop do not have a setting like this? Do they display time correctly in your locale? I don't really want this to be a thing. It seems that this should be automatically use the system's data format locale? |
It's not possible to separate the language locale (e.g., en-US) from the date format in browsers.
I think it's more about personal preference than correctness. user in #1507 said they live in Australia (defaults to
Could you elaborate why? #1507 has been left open and seemed like a valid request. |
Firstly because the ntfy isn't using the system format 100% correctly, but also because users (like me) and @scarf005 and others apparently so... too, and ultimately because... please, lol. :-D
Browser's are weird apps, anyway... in my PCs browsers ntfy, isn't respecting the language settings nor the system (Windows) settings it's simply always showing in US format, dates like (MM/DD/YY) and times are 12H with AM/PM, and frankly it's not good, on android I like to use English US (because the translations aren't always very good) but even after altering to my language the date format in ntfy still uses (DD/MM/YY) format instead of the system configured format (DD/MM/YYYY).
Like I said before, not always, besides I want to be able to set my device in one language and still have the option to use a different time and date formats, for example, I do that on my Android and PCs devices like I said before.
Like @scarf005 asked/said can you say why? Please?
Yes sure for the default option I agree with you, but please please provide options to change that globally in the server and/or in the web GUI and android app, I use your app "android ntfy". Anyway, ultimately it's your call, but please consider these opinions/requests. Thanks for the ntfy project it's awesome! |
Summary
Resolves #1507
Testing
related: binwiederhier/ntfy-android#162