File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func newRssItem(i *Item) *RssItem {
92
92
Link : i .Link .Href ,
93
93
Description : i .Description ,
94
94
Guid : i .Id ,
95
- PubDate : anyTimeFormat (time . RFC822 , i .Created , i .Updated ),
95
+ PubDate : anyTimeFormat ("2006-01-02T15:04:05-07:00" , i .Created , i .Updated ),
96
96
}
97
97
98
98
intLength , err := strconv .ParseInt (i .Link .Length , 10 , 64 )
@@ -108,8 +108,8 @@ func newRssItem(i *Item) *RssItem {
108
108
109
109
// create a new RssFeed with a generic Feed struct's data
110
110
func (r * Rss ) RssFeed () * RssFeed {
111
- pub := anyTimeFormat (time . RFC822 , r .Created , r .Updated )
112
- build := anyTimeFormat (time . RFC822 , r .Updated )
111
+ pub := anyTimeFormat ("2006-01-02T15:04:05-07:00" , r .Created , r .Updated )
112
+ build := anyTimeFormat ("2006-01-02T15:04:05-07:00" , r .Updated )
113
113
author := ""
114
114
if r .Author != nil {
115
115
author = r .Author .Email
You can’t perform that action at this time.
0 commit comments