Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.48k stars 147 forks source link

1-digit year of 0 or 1 as 1900 or 1901 instead of 0 AD or 1 AD #752

Closed iouomo closed 8 months ago

iouomo commented 8 months ago

Describe the bug Getting 1900 or 1901 instead of 0 AD or 1 AD, when picking 0 or 1 year.

To Reproduce Steps to reproduce the behavior:

  1. Set :year-range="[0, 10000]".
  2. Pick year 0 or 1 in the year picker.
  3. Get 1900 or 1901.

Expected behavior Picking 0 or 1 year the result must be 01/01/0000 or 01/01/0001.

Screenshots no

Desktop & mobile (please complete the following information):

Jasenkoo commented 8 months ago

This adds so much complexity, that it is not worth doing it as it will require a full rewrite. Here is a good read