Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 112 forks source link

Year value always starts at 1900 if 2 digits for the year is used #312

Open leolorenzoluis opened 6 years ago

leolorenzoluis commented 6 years ago

Bug, feature request, or proposal:

Year value always starts at 1900

What is the expected behavior?

Set a certain threshold like -/+ 50 of the current year to be the value when 2 digits for the year is used

What is the current behavior?

It always starts at 19+{2 digit value}

What are the steps to reproduce?

  1. Open a date picker
  2. Type in 1/1/1
  3. Value is Jan 01 1901 13:15:14 GMT-0500 (EST)

What is the use-case or motivation for changing an existing behavior?

Angular Material Date Picker does this.

Which versions of Angular, MD2, OS, browsers are affected?

Latest version

Is there anything else we should know?

aford22 commented 6 years ago

Same here. Only an issue if you amend the date manually by typing. If you use the graphical picker this bug doesnt happen

Sanjaygpatel commented 4 years ago

same here,

is there any update till now ?