-
Notifications
You must be signed in to change notification settings - Fork 13
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
UnmarshalJSON function on the Time class assumes no nanosecond portion in the incoming int64 value #109
Comments
I am testing a custom time unmarshalling helper function; please see if it can be helpful:
|
@ra-aylubimov can you show me the output of what you're getting with your query? It seems to be fine on my end.
|
@micahlmartin |
For reference, this is what I get for a similar query (limit=5). { |
In harness\time\time.go, the UnmarshalJSON function assumes that the incoming int64 value does not have the nanosecond portion, and creates the Time type as:
*(*time.Time)(t) = time.Unix(parsedInt, 0)
We observe that this assumption is not true, at least for the executions query, as in
The startedAt and endedAt fields return values greater than "seconds from Unix epoch", causing the function to return an invalid Time object.
The text was updated successfully, but these errors were encountered: