Detect timezone automatically
-
Hello,
I just noticed that the timestamps are wrong in my setup because the timezone is not right. It would be good if Cloudron detects the right timezone during the setup/installation. I wasn't aware I have to set it on my own.
Best Regards,
-
@warg
You don't. It will take the server timezone if you don't change it. Maybe your server timezone is incorrect?@ccfu Just checked it, for some reason it's set to UTC0. Cloudron had it set to Los Angeles which is different to UTC0. So both was incorrect. I've set it to Europe/Berlin manually now. Looks like changing it in Cloudron doesn't change it on OS level, right?
-
@ccfu Just checked it, for some reason it's set to UTC0. Cloudron had it set to Los Angeles which is different to UTC0. So both was incorrect. I've set it to Europe/Berlin manually now. Looks like changing it in Cloudron doesn't change it on OS level, right?
-
Hello,
I just noticed that the timestamps are wrong in my setup because the timezone is not right. It would be good if Cloudron detects the right timezone during the setup/installation. I wasn't aware I have to set it on my own.
Best Regards,
@warg the server is always UTC. It's best not to change this. The log timestamps are based on the browser timezone.
-
@warg the server is always UTC. It's best not to change this. The log timestamps are based on the browser timezone.
@girish Does that mean it takes the timezone from the browser and it doesn't matter what is stored in the user profile field or is the information in the user profile field taken from my browser? L. A. is actually wrong, no clue why this was set (no VPN, wrong IP geolocation or other stuff involved).
-
@warg There is no timezone setting in user profile field. I guess you mean the Settings page (that one is a Cloudron wide setting)? See also https://docs.cloudron.io/settings/#timezone
I just re-read the thread and it's a bit abstract. We have to take a step back. What is the original topic/issue about ?
-
@warg There is no timezone setting in user profile field. I guess you mean the Settings page (that one is a Cloudron wide setting)? See also https://docs.cloudron.io/settings/#timezone
I just re-read the thread and it's a bit abstract. We have to take a step back. What is the original topic/issue about ?
@girish I checked the logs of Nextcloud or Collabora back then and noticed that it was wrong by ~ 2 hours if I remember right. Thus I changed the timezone setting in the Settings view of Cloudron from Los Angeles (whyever that was chosen) to Europe/Berlin and it was fine.
-
@warg OK, strange, let me double check. That is not behaving the way I expect it to behave.
-
@warg OK, there was a bug that LA is chosen as default tz, if no tz was explicitly set. I have fixed this to make UTC as the default instead.
This feature request is still valid . Maybe we should either auto detect or ask the user about the timezone at installation/setup time.