osg icon indicating copy to clipboard operation
osg copied to clipboard

timestamps not working

Open frisbee23 opened this issue 7 years ago • 0 comments

hey, i crawl a site, and in the resulting xml file, all the lastmod times are like this: 0001-01-01T00:00:00+07:00

any idea, why this could happen?

my idea was that the crawl function maybe fails to extract the data from the http headers.. lm, err := time.Parse(http.TimeFormat, res.Header.Get("Last-Modified")) if err != nil { log.Println("Couldn't parse Last-Modified time in header", err) } so i inserted this error checking, but it didnt fire.

any pointers how to debug/fix this greatly appreciated.

frisbee23 avatar May 24 '17 13:05 frisbee23