1
0

This conversion to UTC is excessive.

This commit is contained in:
Alexander Andreev 2022-03-31 17:58:42 +04:00
parent 790a507f0d
commit 0983a0f0c5
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -113,7 +113,7 @@ func lastPlayedSongs(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-0700"),
Time: tim.Format("15:04-0700"),
Artist: at[0],
Title: at[1]})
}