-
Notifications
You must be signed in to change notification settings - Fork 48
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
Error: Hour 0 must be between 1 and 23 inclusive #65
Comments
Thanks for the example and stack trace. It seems that there are a couple of issues with timestamp within ion-js but also with interoperating with othen Ion Libs (e.g., Java). I'll be looking into building testing infrastructure to round trip Ion and ensure that ion-js can commute with results from and to other Ion Libs. |
I suppose the accepted hours should be between Regarding interoperability with other languages, aren't you following the spec? Because spec is spec in any language. https://amzn.github.io/ion-docs/spec.html suggests that |
PRs are always welcome :) You are correct about the Spec and this specific issue. There are other aspects of the spec that allow for implementations to make certain decisions. My previous comment was more in regards to getting all such cases dealt with in a systematic way. Sorry for not expanding a little more on that topic. |
The following are from the above-mentioned spec. Some of them fail with the current code.
|
fix(source): Fix #65: Error: Hour 0 must be between 1 and 23 inclusive.
fix(source): Fix #65: Error: Hour 0 must be between 1 and 23 inclusive.
I have the following Ion structure which was properly created in Java:
When reading this data,
ion-js
fails with the following error message.The text was updated successfully, but these errors were encountered: