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
Marshal / Unmarshal - time.Time to timestamppb #694
Comments
go-aegian
changed the title
Marshal / Unmarshal - time.Time to timestamppb
Marshal / Unmarshal - time.Time
Feb 15, 2024
go-aegian
changed the title
Marshal / Unmarshal - time.Time
Marshal / Unmarshal - time.Time to timestamppb
Feb 15, 2024
Here is an example of what I'm facing as problem, some others have said to use protojson to unmarshall into a proto message but that is not what I need.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when marshalling a time.Time with either timezone info
2024-03-31T15:09:16.822301-04:00
or without it as Z2024-03-31T20:09:00.034949Z
the unmarshall throws this error
"... readObjectStart: expect { or n, but found ", error found in #10 byte of ..."
How can I resolve this without having to create a custom type for time.Time?
The text was updated successfully, but these errors were encountered: