1
0

Added timezone for TZ converting purposes.

This commit is contained in:
Alexander Andreev 2022-03-31 02:55:05 +04:00
parent 6f152673f2
commit 00c4b5a8b3
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -86,7 +86,7 @@ func IcecastLastPlayedSongs(lastNSongs int, playlistPath string) ([]Song, error)
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"),
Time: tim.UTC().Format("15:04-0700"),
Artist: at[0],
Title: at[1]})
}