mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #927] Date/time is wrong (UTC instead of local time) #651
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#651
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 @luckman212 on GitHub (Oct 21, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/927
I read https://github.com/binwiederhier/ntfy/pull/307 and https://github.com/binwiederhier/ntfy/issues/700 but even after being sure I am exporting the correct
TZvariable (America/New_Yorkin my case) and bind mounting/etc/localtimefrom the docker host (-v /etc/localtime:/etc/localtime:ro) I am still getting this...From my ntfy container (2.7.0 pulled from Docker hub)
From the docker host
I think this is why my scheduled notifications aren't working (?). Is this wrong? Or is
datefrom the container just showing the time in UTC? (MM:SS is correct)Can anyone help?
@luckman212 commented on GitHub (Oct 21, 2023):
Hmm,
date -ufrom the docker host returnsSo maybe this isn't really a problem? If not, then I need to figure out why scheduled notifications aren't working...
@slaw54 commented on GitHub (Oct 23, 2023):
Based in New Zealand so currently time +13 GMT. Scheduling works fine if delay entered in Unix format but any time entered as numerals passes into the following day so no simple way to schedule say for 17.00 today. Using "today" makes no difference. I am sending HTTP from android.
@luckman212 commented on GitHub (Oct 23, 2023):
Thinking about it, this actually makes sense. Unless a header is passed by the client indicating the client time zone, there's really no way the ntfy server could know what time zone they are in to set the schedule accordingly.
@slaw54 commented on GitHub (Oct 23, 2023):
The workaround is to offset the time in the APP but the Eastern Standard Time HTTP example in the NTFY documentation does not fit in with this.
@binwiederhier commented on GitHub (Nov 17, 2023):
This is a dup of https://github.com/binwiederhier/ntfy/pull/307 and https://github.com/binwiederhier/ntfy/issues/894. It'll be fixed in the next release.