Fixed an error in a time format.
This commit is contained in:
parent
942bad3b9d
commit
b4cbb236aa
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user