[BUG] 12 hour time causes 0s notifications
Describe the bug On my iPhone, when I go into settings, general, date and time and turn 24 hour time off: all notifications display 0s on igotify app and the timestamp also updates in real time instead of the time they were sent. When enabling 24 hour time, the notifications display the correct timestamp and time since the notification was received.
Expected behavior 12 hour should not show 0s, it should be the same as when 24 hour is enabled.
Smartphone (please complete the following information):
- Device: iPhone 14 pro
- OS: 18.2.1
- Version of gotify 2.6.1
- Version of iGotify 1.3.1.0
- Version of igotify app 1.4.2
Additional context I was confused as to why this was happening and I looked through other issues and deleted the TZ env but that did not work. Switching to 24 hour time did fix it but it would be nice for this bug to be fixed so that I can continue using 12 hour time
I will take a look at this problem
Hi there! I’m currently looking into this issue, and I’d love to hear more about it.
When I switch to 12-hour format, everything seems to be working perfectly.
I’m guessing the problem might be coming from the gotify timezone or the server timezone.
Would you mind sharing your timezone so I can try to reproduce the issue?
My timezone is set to London. Here is a video showcasing the issue
https://github.com/user-attachments/assets/a7313a34-52b8-4b06-855f-ce5cb1b2db50
I do not have any timezone environment variables set for gotify or igotify on docker
ok thx, i will take a look on it and try to fix it!
so I changed now the parsing process and we will look if it works on v1.5
Still having this same issue on Gotify 2.6.3 and iGotify 1.5.0.0 in docker. App version 1.4.2 (32) on iPhone 13 pro max on iOS 18.6.2
All notifications in the iOS app will say 0s ago when showing list of all notification - regardless of age. Selecting individual notifications will show "Notification from:" and then just list the current date and time - regardless of notification age.
This issue is consistent regardless of 12 hour time or 24 hour time for me. Time Zone is set to detroit.
it will be fixed with the app update 1.5 not the container update