Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raushen committed Sep 4, 2024
1 parent 536fcb8 commit c293543
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,10 @@ export class ViewDataGenerator {
startViewDateTime + millisecondsOffset + offsetByCount + viewOffset,
);

const timeZoneDifference = isStartViewDateDuringDST
? 0
: dateUtils.getTimezonesDifference(startViewDate, currentDate);
let timeZoneDifference = 0;
if (!isStartViewDateDuringDST) {
timeZoneDifference = Math.max(0, dateUtils.getTimezonesDifference(startViewDate, currentDate));
}

currentDate.setTime(currentDate.getTime() + timeZoneDifference);

Expand Down

0 comments on commit c293543

Please sign in to comment.