LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   timestamp in the future (https://www.linuxquestions.org/questions/linux-general-1/timestamp-in-the-future-196435/)

comprookie2000 06-22-2004 12:15 PM

timestamp in the future
 
Just installed debian sarge with the netinstall on a old pIII(450) and got everything working except I don't know how to fix these errors when I install stuff with apt;
tar: ./md5sums: time stamp 2004-04-03 07:28:05 is 24535403 s in the future
tar: ./control [almost same as above]
tar: .: [almost same as above]
thanks,how can I fix this?

comprookie2000 06-22-2004 01:10 PM

I fixed it once I searched around some more,from root date 06-22-2004 and the time date 14:15:0 that seemed to fix it my hardware clock was in 2003.

royal024 01-21-2009 03:26 PM

is it possible to modify or ignore the files time stamp? instead of changing the server time?

comprookie2000 01-21-2009 04:47 PM

Wow this is an old post of mine :) Why don't you want to correct the time?
as root
su
date
lets say you want to change the date to Jan 21 5:35pm 2009
date 012117352009

also if your box has a hard time keeping time you can use ntp-client
http://www.debian.org/doc/manuals/sy...dmin-time.html
HTH

dividebyzero 03-12-2010 02:35 PM

tar warns if the files you are extracting have modification time that are in the future (relative to the machine where tar is currently running, of course).

If you don't care about preserving the modification time of the extracted files. You can use the '-m' or '--touch' option of tar. tar will no longer warn because it will set the modification time to the current time touching the extracted files.

zaffi 05-19-2011 05:45 AM

there is logical reason not to change hwclock
 
i just tried to copy a tar across the globe, from a windows machine to a unix server, and got this error message.
the clocks are just fine on both ends.
maybe i could create the tar using GMT time, i don't know.
but the solution was to skip date matching, and not to change clocks.

not working -
tar xzvf fname.tar.gz

working (extra "m") -
tar xmzvf fname.tar.gz


All times are GMT -5. The time now is 07:59 AM.