cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

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

On Tue, 28 Oct 2003, SourceForge.net wrote:

> https://sourceforge.net/tracker/?func=detail&atid=300976&aid=831843&group_id=976

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
known!

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