feat: add timezone support for schedule and user runtime (#282)

This commit is contained in:
Yiming Qi
2026-03-26 01:32:02 +08:00
committed by GitHub
parent 3a7f5200ed
commit 03ba13e7e5
51 changed files with 793 additions and 100 deletions
+2
View File
@@ -33,6 +33,7 @@ type LoginResponse struct {
Role string `json:"role"`
DisplayName string `json:"display_name"`
Username string `json:"username"`
Timezone string `json:"timezone,omitempty"`
}
func NewAuthHandler(log *slog.Logger, accountService *accounts.Service, jwtSecret string, expiresIn time.Duration) *AuthHandler {
@@ -102,6 +103,7 @@ func (h *AuthHandler) Login(c echo.Context) error {
Username: account.Username,
Role: account.Role,
DisplayName: account.DisplayName,
Timezone: account.Timezone,
})
}