日期:2014-05-16  浏览次数:20833 次

parallels desktop 装linux 时间的问题的解决

首先

查看一下

你的系统和OSX 差了几个小时

我安的是ubuntu linux

差了一个小时

也就是说我OSX时间是 ? ? ? ? ? ?14:20

那么我的虚拟机UTC时间就是 ? 15:20

?

进入Linux 终端

?tzselect

Please identify a location so that time zone rules can be set correctly.

Please select a continent or ocean.

?1) Africa

?2) Americas

?3) Antarctica

?4) Arctic Ocean

?5) Asia

?6) Atlantic Ocean

?7) Australia

?8) Europe

?9) Indian Ocean

10) Pacific Ocean

11) none - I want to specify the time zone using the Posix TZ format.

#? GST+1

Please enter a number in range.

#? 11

Please enter the desired value of the TZ environment variable.

For example, GST-10 is a zone named GST that is 10 hours ahead (east) of UTC.

GST+1

?

The following information has been given:

?

TZ='GST+1'

?

Therefore TZ='GST+1' will be used.

Local time is now: Tue Oct 11 15:07:56 GST 2011.

Universal Time is now: Tue Oct 11 16:07:56 UTC 2011.

Is the above information OK?

1) Yes

2) No

#? 1

?

You can make this change permanent for yourself by appending the line

TZ='GST+1'; export TZ

to the file '.profile' in your home directory; then log out and log in again.

?

Here is that TZ value again, this time on standard output so that you

can use the /usr/bin/tzselect command in shell scripts:

GST+1


sudo vi /etc/profile

在最后一行加入?
export TZ="GST+1"
保存 重新启动