vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

Fix for 'isAllowed' test in VDPickerYears.spec.js

Open elyse0 opened this issue 4 years ago • 1 comments

The isBeforeDate(date, beforeDate, type) was failing to convert a simple number into a year, causing 2019 to be an invalid year between 2018 and 2020.

https://github.com/mathieustan/vue-datepicker/blob/62211caacb13943b548dfc4649a42fa0005b8526/tests/unit/components/VDPicker/VDPickerYears.spec.js#L185

Fixes #85

elyse0 avatar Oct 09 '21 20:10 elyse0

So it looks like if you change your time zone to a negative one like US year 2021 is disabled.

georgelazar avatar Aug 16 '22 15:08 georgelazar