Closed
Description
Describe the bug
The official Gatus container image is missing the required timezone data to be able to properly interpret timezone values.
When e.g. setting maintenance.timezone = "Europe/Zurich"
, Gatus panics with:
panic: invalid timezone specified or format not supported. Use IANA timezone format (e.g. America/Sao_Paulo): unknown time zone Europe/Zurich
According to the docs of time.LoadLocation
:
LoadLocation looks for the IANA Time Zone database in the following locations in order:
- the directory or uncompressed zip file named by the ZONEINFO environment variable
- on a Unix system, the system standard installation location
- $GOROOT/lib/time/zoneinfo.zip
- the time/tzdata package, if it was imported
A simple apk install tzdata
fixes the panic. But importing the time/tzdata
would also solve the issue.
What do you see?
panic: invalid timezone specified or format not supported. Use IANA timezone format (e.g. America/Sao_Paulo): unknown time zone Europe/Zurich
What do you expect to see?
No panic.
List the steps that must be taken to reproduce this issue
Set maintenance.timezone = "Europe/Zurich"
.
Version
5.12.0
Additional information
No response