I want the file downloaded with WGET have the date of the download

Is possible when use wget the file downloaded have as the last modified date/time the date of the download, now e.g. Jun 18 14:50 and not the server datetime Sep 8 2001
I have used --no-use-server-timestamps download options but the file remains the server datetime. Similar to what firefox does when you download a file.

wget --no-use-server-timestamps https://linux.dropboxstatic.com/packages/fedora/nautilus-dropbox-2024.04.17-1.fc39.x86_64.rpm -P ~/Downloads
❯ date '+%b %d %H:%M'
Jun 18 14:58
❯ ll -tr ~/Downloads | grep drop
-rw-r--r--. 1 chris chris  81K Sep  8  2001 nautilus-dropbox-2024.04.17-1.fc39.x86_64.rpm

Downloaded with firefox web browser

  • nautilus-dropbox-2024.04.17-1.fc39.x86_64(1).rpm
  • The file have a date of download as Jun 18 15:01
❯ ll -tr ~/Downloads | grep drop
-rw-r--r--. 1 chris chris  81K Sep  8  2001 nautilus-dropbox-2024.04.17-1.fc39.x86_64.rpm
-rw-r--r--. 1 chris chris  81K Jun 18 15:01 nautilus-dropbox-2024.04.17-1.fc39.x86_64(1).rpm

You could use curl inplace of wget which does what you want.

$ curl  https://linux.dropboxstatic.com/packages/fedora/nautilus-dropbox-2024.04.17-1.fc39.x86_64.rpm -O
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 81952  100 81952    0     0    99k      0 --:--:-- --:--:-- --:--:--   99k

$ ll na*
-rw-r--r--. 1 barry 81952 2024-06-18 20:44:58 nautilus
dropbox-2024.04.17-1.fc39.x86_64.rpm

Thanks pal. very useful

❯ curl https://linux.dropboxstatic.com/packages/fedora/nautilus-dropbox-2024.04.17-1.fc39.x86_64.rpm -O

❯ ll
total 84K
-rw-r--r--. 1 chris chris 81K Jun 18 18:24 nautilus-dropbox-2024.04.17-1.fc39.x86_64.rpm
drwxr-xr-x. 1 chris chris  10 Jun 18 18:13 onedrive
drwxr-xr-x. 1 chris chris   0 Jun 16 19:13 Zoom

But maybe there is a problem with the --no-use-server-timestamps download options in wget.

You could report as a bug against wget. See Wget - GNU Project - Free Software Foundation section on maintenance.