dnasir / angular-dateParser

A simple parser that converts date and time strings into Date object
http://dnasir.github.io/angular-dateParser/
MIT License
38 stars 25 forks source link

Parse a month with the current date higher as the max(date) of the parsed month #46

Closed LouisBernath closed 8 years ago

LouisBernath commented 8 years ago

If you parse the value "April 2013" when the current date is "31 July 2013" the parser will output the wrong date.

Change your system date to a higher date than 28 and run following plunker: https://plnkr.co/edit/htRbt2b0JM5H7sQ2RwXe?p=preview

dnasir commented 8 years ago

Merged fix