From ee3c83f39c90126cabb9be896931725c32f22e09 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Fri, 11 Nov 2016 02:48:52 -0500 Subject: tool_operate: Fix --remote-time incorrect times on Windows - Use Windows API SetFileTime to set the file time instead of utime. Avoid utime on Windows if possible because it may apply a daylight saving time offset to our UTC file time. Bug: https://curl.haxx.se/mail/archive-2016-11/0033.html Reported-by: Tim Closes https://github.com/curl/curl/pull/1121 --- docs/FAQ | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'docs/FAQ') diff --git a/docs/FAQ b/docs/FAQ index d663811a2..9157022a2 100644 --- a/docs/FAQ +++ b/docs/FAQ @@ -1016,10 +1016,12 @@ FAQ 4.13 Why is curl -R on Windows one hour off? - During daylight savings time, when -R is used, curl will set a time that - appears one hour off. This happens due to a flaw in how Windows stores and - uses file modification times and it is not easily worked around. For details - on this problem, read this: http://www.codeproject.com/datetime/dstbugs.asp + Since curl 7.53.0 this issue should be fixed as long as curl was built with + any modern compiler that allows for a 64-bit curl_off_t type. For older + compilers or prior curl versions it may set a time that appears one hour off. + This happens due to a flaw in how Windows stores and uses file modification + times and it is not easily worked around. For more details read this: + http://www.codeproject.com/datetime/dstbugs.asp 4.14 Redirects work in browser but not with curl! -- cgit v1.2.3