diff --git a/controllers/feed/eztv.go b/controllers/feed/eztv.go index ba279e62..680b4dc7 100644 --- a/controllers/feed/eztv.go +++ b/controllers/feed/eztv.go @@ -4,7 +4,6 @@ import ( "net/http" "strconv" "strings" - "time" "github.com/NyaaPantsu/nyaa/config" "github.com/NyaaPantsu/nyaa/utils/feeds" @@ -39,7 +38,7 @@ func RSSEztvHandler(c *gin.Context) { }, Description: string(torrentJSON.Description), Comments: config.WebAddress() + "/view/" + strconv.FormatUint(uint64(torrentJSON.ID), 10), - PubDate: torrent.Date.Format(time.RFC822), + PubDate: torrent.Date.Format("Mon Jan 02 15:04:05 -0700 2006"), GUID: config.WebAddress() + "/view/" + strconv.FormatUint(uint64(torrentJSON.ID), 10), Enclosure: &nyaafeeds.RssEnclosure{ URL: config.WebAddress() + "/download/" + strings.TrimSpace(torrentJSON.Hash), diff --git a/controllers/feed/magnet.go b/controllers/feed/magnet.go index 683b06fb..c59f38dd 100644 --- a/controllers/feed/magnet.go +++ b/controllers/feed/magnet.go @@ -4,7 +4,6 @@ import ( "net/http" "strconv" "strings" - "time" "github.com/NyaaPantsu/nyaa/config" "github.com/NyaaPantsu/nyaa/utils/feeds" @@ -36,7 +35,7 @@ func RSSMagnetHandler(c *gin.Context) { Title: torrentJSON.Name, Link: &nyaafeeds.RssMagnetLink{Text: string(torrentJSON.Magnet)}, Description: string(torrentJSON.Description), - PubDate: torrent.Date.Format(time.RFC822), + PubDate: torrent.Date.Format("Mon Jan 02 15:04:05 -0700 2006"), GUID: config.WebAddress() + "/view/" + strconv.FormatUint(uint64(torrentJSON.ID), 10), Enclosure: &nyaafeeds.RssEnclosure{ URL: config.WebAddress() + "/download/" + strings.TrimSpace(torrentJSON.Hash), diff --git a/controllers/feed/rss.go b/controllers/feed/rss.go index f393762a..086f8cb5 100644 --- a/controllers/feed/rss.go +++ b/controllers/feed/rss.go @@ -4,7 +4,6 @@ import ( "net/http" "strconv" "strings" - "time" "github.com/NyaaPantsu/nyaa/config" "github.com/NyaaPantsu/nyaa/utils/feeds" @@ -36,7 +35,7 @@ func RSSHandler(c *gin.Context) { Title: torrentJSON.Name, Link: config.WebAddress() + "/download/" + torrentJSON.Hash, Description: string(torrentJSON.Description), - PubDate: torrent.Date.Format(time.RFC822), + PubDate: torrent.Date.Format("Mon Jan 02 15:04:05 -0700 2006"), GUID: config.WebAddress() + "/view/" + strconv.FormatUint(uint64(torrentJSON.ID), 10), Enclosure: &nyaafeeds.RssEnclosure{ URL: config.WebAddress() + "/download/" + strings.TrimSpace(torrentJSON.Hash),