We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Marshal()
CustomDatetime{}.MarshalCBOR() uses t.Nanosecond() which almost always marshals to 0.
CustomDatetime{}.MarshalCBOR()
t.Nanosecond()
0
Marshal CustomDatetime and it will equal zero
CustomDatetime
Should marshal t to seconds and nanoseconds as per the CBOR specification.
t
surreal 2.0.4
No response
The text was updated successfully, but these errors were encountered:
UnixNano()
Successfully merging a pull request may close this issue.
Describe the bug
CustomDatetime{}.MarshalCBOR()
usest.Nanosecond()
which almost always marshals to0
.Steps to reproduce
Marshal
CustomDatetime
and it will equal zeroExpected behaviour
Should marshal
t
to seconds and nanoseconds as per the CBOR specification.SurrealDB version
surreal 2.0.4
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: