arqex / react-datetime

A lightweight but complete datetime picker react component.
2k stars 869 forks source link

respect strictParsing when using displayTimeZone #842

Open landbased opened 2 years ago

landbased commented 2 years ago

Description

The strictParsing prop was being ignored when combined with the displayTimeZone prop. moment-timezone supports strict parsing so we should pass it in

Motivation and Context

bugfix

Checklist

[x] I have not included any built dist files (us maintainers do that prior to a new release)
[ ] I have added tests covering my changes
[x] All new and existing tests pass
[ ] My changes required the documentation to be updated
  [ ] I have updated the documentation accordingly
  [ ] I have updated the TypeScript 1.8 type definitions accordingly
  [ ] I have updated the TypeScript 2.0+ type definitions accordingly