You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the container, which its TZ is set to Europe/Amsterdam, but Healthcheck just gives me the UTC. Therefore I have 1 hour difference between the timestamps of pings.
I'm aware that on the Events page of a check, there's a select between UTC and Browser's time zone but I'd still like to see the TZ of my servers on the ping modal directly.
Setting up TIME_ZONE = "Europe/Amsterdam" in local_settings.py made the timezone correct but only in the Django Admin, not the UI.
I'm not sure if this is a bug or just a feature (because there can be multiple servers with different timezones?) still it'd be nice to give a default TZ option to users whose servers are in just one TZ.
On the UI:
sqlite:
select*from api_ping order by created desclimit1;
# 62855|10.10.10.186|GET|curl/7.81.0|35|http|1|||2024-03-17 12:26:18.917484||||
container:
root@53303d81bd0c:/# date# Sun Mar 17 13:28:15 CET 2024
root@53303d81bd0c:/# echo $TZ# Europe/Amsterdam
root@53303d81bd0c:/# cat /etc/timezone# cat: /etc/timezone: No such file or directory
root@53303d81bd0c:/# cat /etc/localtime# cat: /etc/localtime: No such file or directory
Healthchecks is designed as a multi-user system, the different users can of course be in different timezones. Using the server's timezone as the default would make one subset of the users happy, and all the rest unhappy.
It seems the issue here is the "Ping Details" modal only shows the time as an ISO8601 timestamp only, and does not show the formatted version in local timezone. Suppose the "Time Received" field had two values – the timestamp, and also a formatted version (formatted using the browser's timezone) – would that work better?
Healthchecks is designed as a multi-user system, the different users can of course be in different timezones.
That makes sense but the Ping Details timestamp shows the UTC time that's in neither browser nor server. So UTC is chosen to be the static default for all cases but instead of timestamp with the server timezone.
Suppose the "Time Received" field had two values – the timestamp, and also a formatted version (formatted using the browser's timezone) – would that work better?
Sounds like a good idea. I'm not sure how'd you like to call those fields. Maybe make the current Time Received formatted using the browser's timezone and add a new field called Server Time Received showing the server timestamp.
Hello,
I have the container, which its TZ is set to Europe/Amsterdam, but Healthcheck just gives me the UTC. Therefore I have 1 hour difference between the timestamps of pings.
I'm aware that on the Events page of a check, there's a select between UTC and Browser's time zone but I'd still like to see the TZ of my servers on the ping modal directly.
Setting up
TIME_ZONE = "Europe/Amsterdam"
inlocal_settings.py
made the timezone correct but only in the Django Admin, not the UI.I'm not sure if this is a bug or just a feature (because there can be multiple servers with different timezones?) still it'd be nice to give a default TZ option to users whose servers are in just one TZ.
On the UI:
sqlite:
container:
On browser:
Healthcheck version:
Thanks for developing Healthchecks again ❤️
The text was updated successfully, but these errors were encountered: