Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintenance.timezone does not seem to work #911

Open
simonhammes opened this issue Nov 21, 2024 · 0 comments
Open

maintenance.timezone does not seem to work #911

simonhammes opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@simonhammes
Copy link

Describe the bug

I'm using the offical gatus Docker image. I've set the TZ environment variable to Europe/Berlin.

This is my maintenance configuration:

maintenance:
  enabled: true
  start: 10:45
  duration: 1h
  timezone: "Europe/Berlin"

Is this a misunderstanding on my side?

What do you see?

Example: Gatus thinks it is in the maintenance period if the local time (Europe/Berlin) is 12:03. There seems to be a 1 hour offset.

From the container logs (using GATUS_LOG_LEVEL=DEBUG):

2024/11/21 12:03:02 [watchdog.execute] Not handling alerting because currently in the maintenance window

What do you expect to see?

Gatus correctly detects if it should switch to maintenance mode.

List the steps that must be taken to reproduce this issue

  1. Start the application
  2. Look at the container logs

Version

latest from Docker Hub

Additional information

No response

@simonhammes simonhammes added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant