Added timezone for TZ converting purposes.
This commit is contained in:
parent
6f152673f2
commit
00c4b5a8b3
@ -86,7 +86,7 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) ([]Song, error)
|
|||||||
tim, _ := time.Parse("02/Jan/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-0700"),
|
||||||
Artist: at[0],
|
Artist: at[0],
|
||||||
Title: at[1]})
|
Title: at[1]})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user