fix for rss time format

This commit is contained in:
Lars Hoogestraat 2018-07-17 13:33:42 +02:00
parent 3013539819
commit 46aa540afe
1 changed files with 1 additions and 1 deletions

View File

@ -33,6 +33,6 @@ type RSSTime time.Time
func (r RSSTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
t := time.Time(r)
v := t.Format("Mon, 2 Jan 2007 15:04:05 GMT")
v := t.Format("Mon, 2 Jan 2006 15:04:05 GMT")
return e.EncodeElement(v, start)
}