Skip to content

Commit

Permalink
fix : Resolved an issue where the time range was not normally represe…
Browse files Browse the repository at this point in the history
…nted in the time grid when the difference between the main time zone offset and the secondary time zone offset was less than 1 hour (fix #488)
  • Loading branch information
jungeun-cho committed Jan 23, 2020
1 parent fd13985 commit a6f489d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/view/week/timeGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ function getHoursLabels(opt, hasHourMarker, timezoneOffset, styles) {
var hoursRange = util.range(0, 24);
var nowAroundHours = null;
var nowHours, nowHoursIndex;
var isNegativeZero = 1 / -Infinity === shiftByOffset;

if (shiftByOffset < 0 && shiftMinutes > 0) {
if ((shiftByOffset < 0 || isNegativeZero) && shiftMinutes > 0) {
shiftByOffset -= 1;
}

Expand Down

0 comments on commit a6f489d

Please sign in to comment.