Skip to content

Commit

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

const timeZoneDifference = isStartViewDateDuringDST
const isCurrentDateDuringDST = currentDate.getHours() !== Math.floor(startDayHour);

const timeZoneDifference = isStartViewDateDuringDST || isCurrentDateDuringDST
? 0
: dateUtils.getTimezonesDifference(startViewDate, currentDate);

Expand Down

0 comments on commit 1682e49

Please sign in to comment.