cURL / Mailing Lists / curl-library / Single Mail


Re: [ curl-Patches-831843 ] Add --head support for file: protocol

From: Daniel Stenberg <>
Date: Wed, 29 Oct 2003 11:17:42 +0100 (CET)

On Tue, 28 Oct 2003, wrote:


While applying and fiddling with your patch here, it struck me that
localtime() might not be the correct function to use since it attempts to
return the date using GMT? Isn't gmtime (and gmtime_r) a better option here?

I realize this code was copied from lib/ftp.c and the problem might exist
there too, but in the case of FTP the time zone given by the server is not

 Daniel Stenberg -- curl: been grokking URLs since 1998
This email is sponsored by: Giveback Program.
Does help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here:
Received on 2003-10-29