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

#32 Handle null, undefined and incorrect values in DatetimeFormatter #43

Merged
merged 3 commits into from
Feb 5, 2013

Conversation

bruno-c
Copy link
Collaborator

@bruno-c bruno-c commented Feb 5, 2013

This is a new pull request for #32

I'm not sure exactly how you prefer to deal with incorrect data - at the moment I added code to treat them as an empty string, which ends up turning them into the "minimum date'' of 1899-12-31T00:00:00Z.

Depending on your opinion, another option would be to throw an exception instead, when the data is obviously invalid.

wyuenho added a commit that referenced this pull request Feb 5, 2013
#32 Handle null, undefined and incorrect values in DatetimeFormatter
@wyuenho wyuenho merged commit d995c83 into cloudflarearchive:0.2.0-wip Feb 5, 2013
@wyuenho
Copy link
Contributor

wyuenho commented Feb 5, 2013

Thank you very much

@bruno-c bruno-c deleted the date-handle-null branch February 5, 2013 19:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants