1
0

Forgot to change time format in Index handler as well.

This commit is contained in:
Alexander Andreev 2022-04-01 23:35:14 +04:00
parent c4532fea24
commit db8e8c3ebf
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -73,7 +73,7 @@ func (h *RadioHandlers) Index(w http.ResponseWriter, r *http.Request) {
} }
if tim, err := time.Parse(time.RFC1123Z, status.ServerStartDate); err == nil { if tim, err := time.Parse(time.RFC1123Z, status.ServerStartDate); err == nil {
status.ServerStartDate = utils.ToClientTimezone(tim, r).Format(time.RFC1123Z) status.ServerStartDate = utils.ToClientTimezone(tim, r).Format(time.RFC1123)
} }
if tim, err := time.Parse(FormatISO8601, status.ServerStartISO8601); err == nil { if tim, err := time.Parse(FormatISO8601, status.ServerStartISO8601); err == nil {