curl / Mailing Lists / curl-users / Single Mail


Re: Query about correcting for DST with curl

From: Daniel Stenberg <>
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 ?

List admin:
Received on 2016-11-10