Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(dateparser): Throws on invalid date format string. #3691

Conversation

stevecavanagh
Copy link

This PR replaces #3568. The dateParser will throw an exception for an invalid format string. In addition to fixing some code formatting issues, this PR also handles parsing dates from the datepicker with a datetime-local type.

@rvanbaalen
Copy link
Contributor

Please add one feature per PR. Based on your PR description, this PR adds two:

  • Exception throwing for invalid dates
  • datetime-local handling

Am I correct?

@rvanbaalen rvanbaalen added this to the Backlog milestone Jun 2, 2015
@RobJacobs RobJacobs mentioned this pull request Jul 22, 2015
@wesleycho
Copy link
Contributor

Can you please rebase this on top of current master?

@stevecavanagh stevecavanagh force-pushed the fix(dateParser)ThrowsOnInvalidFormat branch from 3a2db43 to f2ab8fb Compare December 2, 2015 07:01
@stevecavanagh
Copy link
Author

Rebased as requested. Thanks.

@wesleycho
Copy link
Contributor

Sorry, can you rebase again? Lot of changes happened since then :( .

Test unparsable date string is undefined.
@stevecavanagh stevecavanagh force-pushed the fix(dateParser)ThrowsOnInvalidFormat branch from f2ab8fb to 24fe82e Compare January 18, 2016 06:18
@stevecavanagh
Copy link
Author

Lots of changes = lots of good stuff coming into this project. :) Rebased.

@wesleycho wesleycho modified the milestone: Backlog Apr 5, 2016
@wesleycho
Copy link
Contributor

Thinking about this, I'm not sure whether it makes sense to throw by default - this should probably be configurable.

In addition, this needs to be rebased again (sorry! Some big features & fixes have landed since then)

@wesleycho
Copy link
Contributor

Going to close due to staleness - feel free to open a new PR based on current master.

@wesleycho wesleycho closed this Nov 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants