"David H. Lipman" <dlip...@verizon.net> writes: > I don't know when it happened, probably when I upgraded WGET, but when I > download files > thedy inherit the date and time of the file of when they were downloaded. > > It used to be that when the file was downloaded, it retained the date and > time of the file > it had on the server. Not when it was downloaded. > > How can I force WGET to return to that condition ?
it has to work in the same way as it used to do. It seems to work well here, using the last revision from the source repository: $ LANG=C ./wget -q -d http://www.gnu.org/graphics/gnu-head-mini.png 2>&1 | grep ^Last-Modified Last-Modified: Sun, 05 Dec 2010 20:58:51 GMT $ LANG=C stat gnu-head-mini.png | grep ^Modify Modify: 2010-12-05 21:58:51.000000000 +0100 Can you please provide more information? What version of wget (wget --version)? What operating system? Do you get a different output using that two commands? This is also useful for debugging, do you see something different? $ LANG=C strace -e utimensat ./wget -q http://www.gnu.org/graphics/gnu-head-mini.png utimensat(4, NULL, {{1313833704, 0}, {1291582731, 0}}, 0) = 0 Thanks, Giuseppe