0.1.52 Gateway
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user