Skip to content

Commit

Permalink
Fix broken test from #169
Browse files Browse the repository at this point in the history
  • Loading branch information
marnusw committed Jan 30, 2023
1 parent 7ec892b commit f5217ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/format/test.js
Expand Up @@ -687,10 +687,10 @@ describe('format', function () {

it('https://github.com/marnusw/date-fns-tz/issues/168', () => {
const timeZone = 'Europe/Stockholm'
const dateInUTC = Date.UTC(1888, 11, 1)
const dateInUTC = Date.UTC(1888, 11, 1, 1, 0, 14, 0)
const offsetDate = utcToZonedTime(dateInUTC, timeZone)
const result = format(offsetDate, "yyyy-MM-dd'T'HH:mm:ss.SSSxxx", { timeZone })
assert.equal(result, '1888-12-01T01:00:14.000+01:00')
assert.equal(result, '1888-12-01T01:53:42.000+00:53')
})
})

Expand Down

0 comments on commit f5217ea

Please sign in to comment.