X-Git-Url: https://ruderich.org/simon/gitweb/?p=nsscash%2Fnsscash.git;a=blobdiff_plain;f=fetch.go;h=491720a88786d0c363bc612048a6ce0e1f6b98b5;hp=ba1bbc8f4bde2019503102a1100ea1cf01bcc0a0;hb=0ebeb1b4be72405243eadf39f297a13d6d391020;hpb=379122928e507ed8aacf47959306b2e3abf42d45 diff --git a/fetch.go b/fetch.go index ba1bbc8..491720a 100644 --- a/fetch.go +++ b/fetch.go @@ -43,7 +43,7 @@ func fetchIfModified(url, ca string, lastModified *time.Time) (int, []byte, erro } if !lastModified.IsZero() { req.Header.Add("If-Modified-Since", - lastModified.Format(http.TimeFormat)) + lastModified.UTC().Format(http.TimeFormat)) } client, ok := clients[ca]