diff --git a/internal/gomastodonstats/main.go b/internal/gomastodonstats/main.go index 214c3ac..515ec82 100644 --- a/internal/gomastodonstats/main.go +++ b/internal/gomastodonstats/main.go @@ -26,7 +26,11 @@ func Run() { sendToMatrix(updatedMetrics) // Only post weekly here - weekday := time.Now().Weekday() + localTime, err := time.LoadLocation(TIMEZONE) + if err != nil { + log.Fatal(err) + } + weekday := time.Now().Local().In(localTime).Weekday() if weekday == time.Monday { postToMastodon(updatedMetrics) }