mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1458] Dates and times all muddled #1028
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1028
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tarmacalastair on GitHub (Oct 4, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1458
Hello
🐞 Describe the bug
I'm still getting a problem with dates and times. I think the US is pretty much the only country in the world where dates are formatted mm/dd/yyyy. We in the UK use dd/mm/yyy as do most other countries. I would also personally prefer to use times in 24 hour format rather than AM/PM.
I first tried using the ntfy.sh website and got the results shown in the screenshot (in both the Android app and the website). But I can't see any option in the app or website to modify date or time formats. As you can see the header shows the date as dd/mm/yyy and the time in 24 hour format but later within the message the date is in American format and the time is in AM/PM format and is now showing 1 hour behind in GMT.
When I found this issue and https://github.com/binwiederhier/ntfy/issues/475 I thought I'd try setting up ntfy in Docker so I could specify the TZ variable but I get exactly the same issues.
ntfy does now seem to honour the TZ variable in the header of each message but now the date and time formats don't seem to be consistent within the same message - see screenshot and notes above.
Thanks.
💻 Components impacted
So it seems that there is a problem in both the web and app version, using a self-hosted server or https://ntfy.sh
💡 Screenshots and/or logs
🔮 Additional context
I am using ntfy to get messages from my duplistatus docker stack. I have set the TZ variable in both stacks to Europe/London.
@luneth commented on GitHub (Oct 5, 2025):
Ntfy is using the correct local, as shown in the top left corner of each notification.
Your issue is in the messages themselves, which is probably a configuration issue the software your running (duplistatus) or the host running it?
Are you positive duplistatus has the tz environment correctly set up?
@tarmacalastair commented on GitHub (Oct 6, 2025):
Ah thanks. I had used quotes around Europe/London in my compose file which I confirmed by execing into the container, was not working. I have now corrected this and the time within ntfy messages now shows in the correct TZ (GMT+!) but is still showing as AM/PM and the date is still showing in US mm/dd/yyy format.
I'll post an issue with the other project as I notice the screenshots there seem to show the dates in European format and the times in 24 format.
Many thanks