scrobblerlog: fixed timezone offset calculation

The timezone offset must be substracted to get the actual time in UTC.
This commit is contained in:
Philipp Wolfer 2025-05-01 11:51:02 +02:00
parent 0a411fe2fa
commit e973e72bbe
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
2 changed files with 4 additions and 3 deletions

View file

@ -91,7 +91,7 @@ func TestParserFallbackTimezone(t *testing.T) {
require.NoError(t, err)
record1 := result.Records[0]
assert.Equal(
time.Unix(1260342084, 0).Add(2*time.Hour),
time.Unix(1260342084, 0).Add(-2*time.Hour),
record1.Timestamp,
)
}