feat(reports): align rollup timezones

This commit is contained in:
2026-06-06 23:59:33 +08:00
parent b17e9e34ac
commit d75c5f4287
14 changed files with 409 additions and 207 deletions
@@ -456,6 +456,7 @@ func serializeAccountSettings(account *model.Account) map[string]any {
"auto_resolve_ignore_waiting": false,
"audio_transcriptions": false,
"auto_resolve_label": "",
"reporting_timezone": account.ReportingTimezone,
}
return settings
}
@@ -51,7 +51,7 @@ func (s *AnalyticsHandlerTestSuite) SetupSuite() {
))
// Create test account
acct := model.Account{Name: "TestAccount"}
acct := model.Account{Name: "TestAccount", ReportingTimezone: "UTC"}
s.Require().NoError(db.Create(&acct).Error)
s.accountID = acct.ID