Skip to content

Commit

Permalink
Update format of submission time. HN added a Z to the end, which brok…
Browse files Browse the repository at this point in the history
…e our crawler
  • Loading branch information
johnwarden committed Sep 7, 2024
1 parent da4e19d commit bf2585a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit bf2585a

Please sign in to comment.