Skip to content

Commit

Permalink
symmetric marshalling of date
Browse files Browse the repository at this point in the history
  • Loading branch information
goraxe committed Mar 20, 2018
1 parent 8af05cd commit 121b12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newznab/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ type Time struct {

func (t *Time) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
e.EncodeToken(start)
e.EncodeToken(xml.CharData([]byte(t.UTC().Format(time.RFC822))))
e.EncodeToken(xml.CharData([]byte(t.UTC().Format(time.RFC1123Z))))
e.EncodeToken(xml.EndElement{start.Name})
return nil
}
Expand Down

0 comments on commit 121b12b

Please sign in to comment.