8000 New `maintenance.timezone` config requires IANA Time Zone database · Issue #848 · TwiN/gatus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New maintenance.timezone config requires IANA Time Zone database #848
Closed
@salim-b

Description

@salim-b

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0