emersion / go-webdav

A Go library for WebDAV, CalDAV and CardDAV
MIT License
326 stars 72 forks source link

internal: r/w roundtrip of Time broken #47

Closed sbinet closed 3 years ago

sbinet commented 3 years ago

hi,

trying to retrieve the list of contacts (served by hydroxide) I noticed the internal.Time value XML encoding/decoding roundtrip was broken:

emersion commented 3 years ago

Ooops. I guess we should probably just use http.TimeFormat. Need to be careful about:

The time being formatted must be in UTC for Format to generate the correct format.