cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1218614 ] -R doesn't convert UTC correctly when using -o during DST

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 13 Jun 2005 03:34:57 -0700

Bugs item #1218614, was opened at 2005-06-11 06:04
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1218614&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: wrong behaviour
Status: Open
>Resolution: Works For Me
Priority: 5
Submitted By: Joe Schwendt (jhs2)
Assigned to: Daniel Stenberg (bagder)
Summary: -R doesn't convert UTC correctly when using -o during DST

Initial Comment:
When I attempt to use curl.exe on Windows XP to
download a file and keep the "last modified" time the
same for the file, curl doesn't appear to correctly convert
to local time during Daylight Savings Time. The
command line for curl is:

curl.exe --remote-time -o <LocalFile> <URLofFile>

When I run curl with -I (curl.exe -I <URLofFile>) to get
the header, the last modified time appears in GMT
correctly. When I download the file however, the last
modified time become is GMT-1.

The webserver (IIS6) is functioning correctly. I also
verified that both the client and server are on the same
time zone and are both enabled for DST. If I copy the
file manually using Windows File Sharing, the time is
correct.

I can reproduce this on demand with any file.

Please let me know if additional data is needed. The
following is what is displayed for curl.exe --version:

curl 7.14.0 (i586-pc-mingw32msvc) libcurl/7.14.0
OpenSSL/0.9.7e zlib/1.2.2
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: Largefile NTLM SSL SSPI libz

Thanks,
Joe Schwendt
joe_at_schwendt.com

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2005-06-13 12:34

Message:
Logged In: YES
user_id=1110

(on Linux, using 7.14.0)
$ curl -I curl.haxx.se
...
Last-Modified: Mon, 13 Jun 2005 10:20:12 GMT

$ curl -R curl.haxx.se -o dump
$ ls -l dump
-rw-r--r-- 1 daniel daniel 14610 Jun 13 12:20 dump
$ date
Mon Jun 13 12:29:13 CEST 2005

And I am currently 2 hours away from GMT. It looks just
right to me.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1218614&group_id=976
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-tracker
Received on 2005-06-13

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET