Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteRiccio committed Oct 2, 2023
1 parent b1c5798 commit 20cda1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/tests/surveyFormPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export default () =>
const startTimePlus1Minute = DateUtils.addMinutes(startTimeDate, 1)
const possibleDateValues = [new Date(startTime), startTimePlus1Minute]
const expectedPossibleValues = possibleDateValues.map((possibleDateValue) => {
// const dateWithTimezoneOffset = DateUtils.addMinutes(possibleDateValue, possibleDateValue.getTimezoneOffset())
const dateWithTimezoneOffset = possibleDateValue
const timezoneOffsetDiff = startTimeDate.getTimezoneOffset() - -120 // browser timezone=Europe/Rome
const dateWithTimezoneOffset = DateUtils.addMinutes(possibleDateValue, timezoneOffsetDiff)
return formatTime(dateWithTimezoneOffset)
})
return `(${expectedPossibleValues.join('|')})`
Expand Down

0 comments on commit 20cda1c

Please sign in to comment.