Closed shmsr closed 4 years ago
Would you accept a PR? I'd like to fix this bug.
Yes, please file a PR. Thanks for reporting this!
@droyo I've added a commit that fixes this bug. Could you please review it? And really sorry for being this late.
@droyo Did you get a chance to review this? This is just a reminder!
This code block is taken from the output generated by
xsdgen
:_unmarshalTime
function is called when theUnmarshalText
method is used which takes care of the parsing the timezone from the input. ButMarshalText
doesn't consider the timezone and hence ignored.Example
With the
MarshalText
method generated byxsdgen
, it does the marshalling without the timezone:But suppose if
Z07:00
is added toMarshalText
method:Then it properly considers the timezone when marshalling: