Closed salim-b closed 2 months ago
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:
maintenance.timezone = "Europe/Zurich"
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:
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
LoadLocation looks for the IANA Time Zone database in the following locations in order:
A simple apk install tzdata fixes the panic. But importing the time/tzdata would also solve the issue.
apk install tzdata
time/tzdata
No panic.
Set maintenance.timezone = "Europe/Zurich".
5.12.0
No response
I think I'd prefer going the import route if it does fix the issue
@salim-b could you give it a try with the new latest image?
latest
@TwiN latest image works fine without manual tzdata install. 👌
tzdata
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:According to the docs of
time.LoadLocation
:A simple
apk install tzdata
fixes the panic. But importing thetime/tzdata
would also solve the issue.What do you see?
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