From bf2585a0a4bafbeb0c605c8e4317cc857687a5b1 Mon Sep 17 00:00:00 2001 From: "Jonathan R. Warden" Date: Sat, 7 Sep 2024 12:47:55 -0600 Subject: [PATCH] Update format of submission time. HN added a Z to the end, which broke our crawler --- scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper.go b/scraper.go index 3014cef..b0dc972 100644 --- a/scraper.go +++ b/scraper.go @@ -83,7 +83,7 @@ func (rs rawStory) Clean() (ScrapedStory, error) { // parse submission time { - submissionTime, err := time.Parse("2006-01-02T15:04:05", rs.SubmissionTime) + submissionTime, err := time.Parse("2006-01-02T15:04:05Z", rs.SubmissionTime) if err != nil { return story, errors.Wrapf(err, "parse submission time %s", rs.SubmissionTime) }