I have a ubuntu 10.04 system in a openvz contaioner.
我在openvz contaioner中有一个ubuntu 10.04系统。
now, I get a problem of the time & time zone.
现在,我遇到了时间和时区的问题。
I have change my timezone to Asia/Shanghai by the command:
我已通过命令将我的时区更改为亚洲/上海:
sudo dpkg-reconfigure tzdata
and it get work when I run command:
当我运行命令时它会工作:
~$ date
2013年 02月 24日 星期日 12:00:05 CST
But if I touch a file, the file's modifier time is in the future!
但是,如果我触摸文件,文件的修改时间将在未来!
~$ touch somefile
~$ ls -l
total 1
-rw-r--r-- 1 chen chen 0 2013-02-24 20:07 somefile
Note that the new touched file somefile
has a 8 hours future time!! how it happend!!
请注意,新的触摸文件somefile有一个8小时的未来时间!!怎么回事!!
~$ ls --full-time
total 1
-rw-r--r-- 1 chen chen 0 2013-02-24 20:07:33.340285883 +0800 somefile
1 个解决方案
#1
0
Touch hasn't been aliased has it? That is the command touch isn't an alias for touch -d '+8 hours' or something like that?
Touch还没有别名吗?那是命令触摸不是触摸-d'+ 8小时'或类似的别名?
#1
0
Touch hasn't been aliased has it? That is the command touch isn't an alias for touch -d '+8 hours' or something like that?
Touch还没有别名吗?那是命令触摸不是触摸-d'+ 8小时'或类似的别名?