andrewplummer / Sugar

A Javascript library for working with native objects.
https://sugarjs.com/
MIT License
4.53k stars 305 forks source link

"Next" doesn't work with month name, returns 2001 as the year #688

Open wbharding opened 10 months ago

wbharding commented 10 months ago

As seen in the Date example on your site:

image

Expected: should return the year as (new Date()).getFullYear() + 1

wbharding commented 10 months ago

Related, happy to open a separate ticket upon request:

When using "next" with a month name, meridiem times are not allowed, but 24-hour times are:

image

image