-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't generate invalid dates #840
Conversation
Don't generate invalid dates when the schema uses a date time format that is incompatible with the javascript Date object constructor such as '1987-01-01-05:00'
Thanks a lot! Perhaps we should consider to add If not, I'll be happy to merge your request but I must ask for at least 1 test for this too as is stated in our CONTRIBUTING.md. |
If you're happy with that, we were planning on adding moment js to our fork of the project for exactly this reason! Should I crack on? :) |
This would be awesome @mredbishop 👍 😸 |
Hey @herom, where do you test the xml parsing? I've included moment and written the code to support it but I'm not sure where you are testing the xml parser from? |
Never mind I got it, I'll see if I can put it together and submit a pull request. |
…moment. Added a test for the utility.
…rrideTimeZone and momentDateFormat on the options object when calling createClient(). Added tests to ensure it works. Added a vscode launch file for running and debugging the tests in vscode.
@herom I've added a test to cover this which is passing. Let me know if it needs anything else. |
@@ -0,0 +1,4 @@ | |||
{ | |||
"momentDateTimeFormat": null, | |||
"overrideTimeZone": "UTC" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about just timezone
?
would it make sense to merge the first commit while you work on the moment.js feature? |
we really need the API changes to be made first |
closing due to inactivity |
Don't generate invalid dates when the schema uses a date time format that is incompatible with the javascript Date object constructor such as '1987-01-01-05:00'