Skip to content

Commit

Permalink
Fix flaky dst timezone test
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Nov 24, 2023
1 parent b01e963 commit 005e57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date/stringToDayjs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('stringToDayjs', () => {
const dateStr = '2019-11-01T11:00:00'
const timestamp = new Date(dateStr).getTime()

const newYorkOffset = dayjs().tz('America/New_York').utcOffset()
const newYorkOffset = dayjs(dateStr).tz('America/New_York').utcOffset()

dayjs.tz.setDefault('America/New_York')

Expand Down

0 comments on commit 005e57e

Please sign in to comment.