4

On my machine at work I experience weird timestamps of files. This is bothering me, because it messes with make.

To reproduce the issue, this suffices:

$ touch foo
$ stat -c %y foo
2014-01-31 16:38:51.000000000 +0100
$ date
Fr 31. Jan 16:14:59 CET 2014

As you can see, the file, although just created, has a timestamp that is roughly 24 minutes in the future. To be precise, it is fairly stable at 24 minutes and 8 seconds, which is 1448 seconds, to me a seemingly arbitrary number.

The same holds for directories freshly created with mkdir or simply any kind of file saving / creating stuff.

Our administrator is fairly unresponsive and didn't gave root permissions either. What might be the cause of this issue and how to deal with it, if possible without root?

  • According to a man page it's possible to pass a custom date/timestamp to the touch command. Don't you have any aliases by any chance, which can affect touch? – UVV Jan 31 '14 at 15:30
  • @UVV Negative. No alias. This affects all types of file creation, not just touch. For example saving a document with gedit or similar results in the same situation. – stefan Jan 31 '14 at 15:32
  • 2
    Could that be your problem stackoverflow.com/questions/14497761/… ? – UVV Jan 31 '14 at 15:34
  • @UVV it might be. I'd need to check with my administrator but that usually takes some weeks. Any way to test that myself? – stefan Jan 31 '14 at 15:35
  • 3
    Is the filesystem local or remote? If it is remote, likely the time on the remote machine is wrong and ahead of your clock. Convince your admin to use NTP or something to keep the clocks in sync. – casey Jan 31 '14 at 15:37
3

Most likely you are on remote file system and the timestamp is generated there. To confirm that you can use either mount command and check your current directory or df .. It's advisable to use NTP to avoid that situation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.