mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-10 02:07:05 +02:00
scrobblerlog: fixed timezone offset calculation
The timezone offset must be substracted to get the actual time in UTC.
This commit is contained in:
parent
0a411fe2fa
commit
e973e72bbe
2 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue