OpenTreeMap / otm-core

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
www.opentreemap.org
Other
186 stars 88 forks source link

Use strict mode when using moment.isValid to check date formatting. #3246

Closed jwalgran closed 6 years ago

jwalgran commented 6 years ago

Overview

Dates on the advanced search toolbar were being set incorrectly because the parsing a short date with the long date format was being interpreted as valid. Enabling "strict mode" makes the date parsing resolves this.

Connects #3245

Demo

Before

screen shot 2018-05-03 at 11 42 53 am

After

screen shot 2018-05-03 at 11 43 27 am

Testing

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 83.867% when pulling 929595c31d84b37b013e288a76d010f9c3d49e8b on jcw/date-picker-bug into b7e7bbf474768511196862d92c496da34fc7d298 on develop.

jwalgran commented 6 years ago

@azavea-bot rebuild