Closed omarismail closed 3 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here with @googlebot I signed it!
and we'll verify it.
ℹ️ Googlers: Go here for more info.
@googlebot I signed it!
@quetzyg yes I tried this last night and it appeared supplying the annotation resulted in the time still being serialized as a numeric value rather than a string. Reverted it.
I've corrected this in #204
Background
Go has a time format called RFC3339.
PR Description
This PR introduces the ability to add an annotation
jsonapi:"attr,next,rfc3339"
to atime.Time
attribute, and it will parse the time according to the Go RFC3339 time format.