prod #123

Merged
finley merged 122 commits from prod into master 2025-11-22 17:52:40 -08:00
Showing only changes of commit 2a601df758 - Show all commits

View file

@ -256,8 +256,13 @@ func main() {
/* Cron Jobs */
go func() {
s := gocron.NewScheduler(time.UTC)
s.Every(10).Second().Do(func() {
loc, err := time.LoadLocation("Australia/Sydney")
if err != nil {
log.Printf("Failed to load Sydney timezone: %v", err)
loc = time.UTC // fallback to UTC
}
s := gocron.NewScheduler(loc)
s.Every(1).Day().At("08:00").Do(func() {
// Checks quotes for reminders and expiry notices
quoteHandler.DailyQuoteExpirationCheck()
})