Solution for
yyyy-MM-dd HH:mm:ss
isInvalid Date
in Safari, IE, etc
No dependencies, min + gzip = 280 B
npm i -S fix-date
import 'fix-date' // or require('fix-date') at the beginning
- no more, that's it!
You can also use it with
<script src="fix-date.min.js"></script>