From 218916e831fe66304027043b26d3348b102b8136 Mon Sep 17 00:00:00 2001 From: Jannover5000r <90698896+Jannover5000r@users.noreply.github.com> Date: Tue, 25 Aug 2026 23:40:18 +0200 Subject: [PATCH] fixed timeutil to set UTC zone correctly UTC will actually be set new when nothing is inserted moved initUpdate() to the top of main and finish as first order of operations --- Untis/timeutil.go | 1 + main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Untis/timeutil.go b/Untis/timeutil.go index db15d28..20f1f51 100644 --- a/Untis/timeutil.go +++ b/Untis/timeutil.go @@ -19,6 +19,7 @@ func init() { loc, err := time.LoadLocation(timezone) if err != nil { log.Printf("Failed to load timezone, set as UTC") + loc = time.UTC } Location = loc } diff --git a/main.go b/main.go index eb98704..7b85e7c 100644 --- a/main.go +++ b/main.go @@ -104,7 +104,7 @@ func init() { } func main() { - go func() { initUpdate() }() + initUpdate() go BotStart.Start() scheduleTimetableUpdate() sigChan := make(chan os.Signal, 1)