Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/podgrab/commit/0f13bc3ddcd4ce9545670861d3ae8dc393ae76e7 You should set ROOT_URL correctly, otherwise the web may not work correctly.

fix breaking time for seattle now

pull/46/head
Akhil Gupta 4 years ago
parent 3baa42a4e4
commit 0f13bc3ddc

@ -240,6 +240,15 @@ func AddPodcastItems(podcast *db.Podcast, newPodcast bool) error {
modifiedRFC1123 := "Mon, 2 Jan 2006 15:04:05 MST"
pubDate, _ = time.Parse(modifiedRFC1123, obj.PubDate)
}
if (pubDate == time.Time{}) {
// RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700" // RFC1123 with numeric zone
modifiedRFC1123Z := "Mon, 2 Jan 2006 15:04:05 -0700"
pubDate, _ = time.Parse(modifiedRFC1123Z, obj.PubDate)
}
if (pubDate == time.Time{}) {
fmt.Printf("Cant format date : %s", obj.PubDate)
}
if latestDate.Before(pubDate) {
latestDate = pubDate

Loading…
Cancel
Save