Skip to content

feat(web): add configurable datetime format preference#1623

Open
scarf005 wants to merge 4 commits into
binwiederhier:mainfrom
scarf005:feat/1507/option-datetime-format
Open

feat(web): add configurable datetime format preference#1623
scarf005 wants to merge 4 commits into
binwiederhier:mainfrom
scarf005:feat/1507/option-datetime-format

Conversation

@scarf005

@scarf005 scarf005 commented Feb 24, 2026

Copy link
Copy Markdown

Summary

Resolves #1507

Testing

image

related: binwiederhier/ntfy-android#162

scarf005 and others added 4 commits February 25, 2026 02:16
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
@binwiederhier

Copy link
Copy Markdown
Owner

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?

@scarf005

Copy link
Copy Markdown
Author

Chrome and Firefox on Android and on desktop do not have a setting like this?
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.

Do they display time correctly in your locale?

I think it's more about personal preference than correctness. user in #1507 said they live in Australia (defaults to DD/MM/YYYY) but prefers YYYY-MM-DD.

I don't really want this to be a thing.

Could you elaborate why? #1507 has been left open and seemed like a valid request.

@Newtomic

Copy link
Copy Markdown

@binwiederhier
comment


It is not clear to me why this is necessary.

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


Chrome and Firefox on Android and on desktop do not have a setting like this?

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).


Do they display time correctly in your locale?

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.


I don't really want this to be a thing.

Like @scarf005 asked/said can you say why? Please?


It seems that this should be automatically use the system's data format locale?

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!

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.

Request | Add option to change DateTime format in Web & Mobile apps

3 participants