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
This commit is contained in:
Jannover5000r 2026-08-25 23:40:18 +02:00
parent 1f5f10f545
commit 218916e831
2 changed files with 2 additions and 1 deletions

View file

@ -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
}

View file

@ -104,7 +104,7 @@ func init() {
}
func main() {
go func() { initUpdate() }()
initUpdate()
go BotStart.Start()
scheduleTimetableUpdate()
sigChan := make(chan os.Signal, 1)