Closed afnpires closed 7 years ago
Thanks for feedback. I have seen and investigated, but no luck yet.
I see this warning when dateStr
doesn't match the given dateFormat
. Giving moment a default format when parsing the string should remove the error, ie try changing the line
date = moment(dateStr).toDate(); //parse as ISO format
to
date = moment(dateStr, moment.ISO_8601).toDate(); //parse as ISO format
It seems fixed with the recent release, 0.13.0, please verify the change
0.12.9 is working fine, there is no deprecation warning.
Warning being shown in the console.
In this code:
The moment.js version is 2.14.1.