Hi!
The problem is this line
let currentDayModel = new Date(currentYear, dayMonth - 1, day)
|
let currentDayModel = new Date(currentYear, dayMonth - 1, day) |
Because after that u are using the moment-adapter to compare currentDayModel
with min
and max
using isSameOrAfter / isSameOrBefore
When moments timezone is set to another timezone, the day u are comparing is not on the day currentDayModel
is.