Paul-DS / bootstrap-year-calendar

[DEPRECATED] A fully customizable year calendar widget, for boostrap !
Apache License 2.0
294 stars 243 forks source link

Where is my August 31? #179

Closed gmoqa closed 5 years ago

gmoqa commented 6 years ago

This may sound stupid, but for some reason I can not visualize on August 31, It does not appear in my project, it does not appear in the examples.

image

William-H-M commented 6 years ago

If not wrong Chile has or is on DST right now (Yes, I stalked you...) that's why this happens it's being reported for all browser and it's a deal with how JavaScript and browsers deal with it, for you in this case doesn't appear for other is duplcated!, and quoted from Matt Johnson of Moment.js

To be clear, this is a browser issue - not a moment issue. Similar results can be obtained by just using the Date object. Moment could detect this issue and compensate, but it currently does not.

Source of quote https://stackoverflow.com/questions/32573951/getting-invalid-day-in-date-when-using-moment-js-in-mozilla-firefox

gmoqa commented 6 years ago

Thanks for the info, now with this, I'll see how to solve it, it's so funny.

image