diff --git a/main.go b/main.go index 11b35fe..98d8175 100644 --- a/main.go +++ b/main.go @@ -25,12 +25,7 @@ func init() { } func setTimeZone() { - loc, err := time.LoadLocation("Asia/Singapore") - if err != nil { - log.Printf("Error loading time zone 'Asia/Singapore': %v", err) - log.Println("Falling back to UTC") - loc = time.UTC - } + loc := time.FixedZone("Asia/Singapore", 8*60*60) time.Local = loc } diff --git a/service/binance.go b/service/binance.go index 26f1655..5e9c51e 100644 --- a/service/binance.go +++ b/service/binance.go @@ -27,10 +27,6 @@ func init() { botToken = os.Getenv("BOT_TOKEN") chatID = mustParseInt64(os.Getenv("CHAT_ID")) symbols = strings.Split(os.Getenv("SYMBOLS"), ",") - singaporeTZ, err = time.LoadLocation("Asia/Singapore") - if err != nil { - log.Fatal(err) - } bot, err = tgbotapi.NewBotAPI(botToken) if err != nil {