Open Akashr7n opened 10 months ago
@rogpeppe / @niemeyer Could you please help look into this. Am I expecting anything wrong?
time.Time
implements encoding.TextUnmarshaler
and encoding.TextMarshaler
as unquoted RFC3339 (see source): https://go.dev/play/p/91Czuy75Xwl.
Why would you expect it to be quoted?
Marshaling/unmarshaling Works fine with v3: https://go.dev/play/p/9dGIFChLTDs.
Also, 2020-04-15T00:00:00
is not a valid RFC3339 timestamp https://go.dev/play/p/RtIEqzhnNRQ.
(Below is example without 'Z') Actual: date: 2020-04-15T00:00:00
Expecting: date: '2020-04-15T00:00:00'