From b4cbb236aaa9ab5f6e48a5db2348f35fee0157a9 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 31 Mar 2022 02:16:34 +0400 Subject: [PATCH] Fixed an error in a time format. --- internal/radio/icecast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 5d0b883..70efcc9 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -83,7 +83,7 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) ([]Song, error) if len(ts) <= 1 { 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], " - ") songs = append(songs, Song{ Time: tim.UTC().Format("15:04"),