touch command creates file one hour behind
Posted: 2017/11/15 10:19:25
All ordinary users on my linux box have an issue. When they create a file using `$ touch test.txt` or using script and do `ls -ali | grep test.txt` I notice that the time of the file is one hour behind current time.
I checked system time using `$ date` command and it shows the current time. I also tried adding:
`TZ="/usr/share/zoneinfo/Europe/London" export TZ`
Then logged out and logged in again but same issue. How to fix the issue so that the new files are created with the current time?
I have CentOS release 6.6
I checked system time using `$ date` command and it shows the current time. I also tried adding:
`TZ="/usr/share/zoneinfo/Europe/London" export TZ`
Then logged out and logged in again but same issue. How to fix the issue so that the new files are created with the current time?
I have CentOS release 6.6