curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Query about correcting for DST with curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 10 Nov 2016 23:31:39 +0100 (CET)

On Thu, 10 Nov 2016, Tim wrote:

> When I use curl to download a file from a website, the timestamp is out by
> an hour.

Are you talking about using the -R, --remote-time option ?

> I think this is because of Daylight Saving Time. Do any of you know how I
> can correct this?

curl can only parse and use the document time provided by the server. If that
is off, curl has no way to offset it. Maybe we should.

> Please note that I have access to both the web server and the client
> computer so I can make any necessary changes at either end.

So is the server time off ?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ:        https://curl.haxx.se/docs/faq.html
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-11-10