Skip to content

Commit

Permalink
fixes #1453; date change when day changes in hour scale
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Dec 12, 2024
1 parent 2768aec commit 72ecf97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/TimeScale.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,12 @@ class TimeScale {
let month = checkNextMonth.month
month = changeMonth(date, month)

// Check if date is greater than 31 and change month if it is
if (firstTickValue > 31) {
date = 1
firstTickValue = date
}

// push the first tick in the array
this.timeScaleArray.push({
position: firstTickPosition,
Expand Down

0 comments on commit 72ecf97

Please sign in to comment.