fix for rss time format
This commit is contained in:
parent
3013539819
commit
46aa540afe
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue