1
0

Fixed an error in a time format.

This commit is contained in:
Alexander Andreev 2022-03-31 02:16:34 +04:00
parent 942bad3b9d
commit b4cbb236aa
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -83,7 +83,7 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) ([]Song, error)
if len(ts) <= 1 { if len(ts) <= 1 {
continue continue
} }
tim, _ := time.Parse("02/01/2006:15:04:05 -0700", ts[0]) tim, _ := time.Parse("02/Jan/2006:15:04:05 -0700", ts[0])
at := strings.Split(ts[1], " - ") at := strings.Split(ts[1], " - ")
songs = append(songs, Song{ songs = append(songs, Song{
Time: tim.UTC().Format("15:04"), Time: tim.UTC().Format("15:04"),