0.1.52 Gateway

This commit is contained in:
ponzischeme89
2026-08-17 19:09:17 +12:00
parent d5a8d3ad88
commit 1da91e40a1
46 changed files with 1626 additions and 106 deletions
+2 -8
View File
@@ -87,10 +87,7 @@ func (s *Server) parseFilterDate(raw string, endOfDay bool) time.Time {
if parsed, err := time.Parse(time.RFC3339, raw); err == nil {
return parsed
}
location := s.cfg.SonarrLocation
if location == nil {
location = time.UTC
}
location := s.householdLocation()
parsed, err := time.ParseInLocation("2006-01-02", raw, location)
if err != nil {
return time.Time{}
@@ -105,10 +102,7 @@ func (s *Server) parseFilterDate(raw string, endOfDay bool) time.Time {
// asked to do the grouping in it rather than the console doing it in the browser's zone,
// for the reason store.LoginDays gives.
func (s *Server) zoneName() string {
if s.cfg.SonarrLocation != nil {
return s.cfg.SonarrLocation.String()
}
return "UTC"
return s.householdTimezoneName()
}
type adminLoginsResponse struct {