mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 126 forks source link

'set date' behavior is setting the date of one day ahead from what is in the ISO string #87

Closed bhavesh-pandey closed 7 years ago

bhavesh-pandey commented 7 years ago

Here is the JS Bin of the problem I am facing

JS Bin

The ISO string I am setting to the calender is '2017-05-15T18:30:00.000Z' and the input box is showing the value as 'May 16, 2017'. ISO string shows the date as 'May 15, 2017'

Is there a workaround to fix that?

bhavesh-pandey commented 7 years ago

This issue was coming because of ISO string formatting