儘管 ntp 系統時鐘領先 5.5

儘管 ntp 系統時鐘領先 5.5

這裡的時區是 Asia/Tehran,但 ubuntu 時間比當地時間早 5H30M。

我檢查了配置,甚至安裝了 ntp 伺服器,似乎沒有什麼可以解決這個問題,

sudo dpkg-reconfigure tzdata

Current default time zone: 'Asia/Tehran'
Local time is now:      Thu May  9 00:49:38 IRDT 2013.
Universal Time is now:  Wed May  8 20:19:38 UTC 2013.

/etc/ntp.conf

driftfile /var/lib/ntp/ntp.drift

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable


server ir.pool.ntp.org
server in.pool.ntp.org
server tr.pool.ntp.org

server ntp.ubuntu.com


restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

restrict 127.0.0.1
restrict ::1

以下是目前的情況

$ date
    Sun May 12 17:15:39 IRDT 2013
$ date --utc
    Sun May 12 12:45:40 UTC 2013
according to Google my local time is 
    11:45 AM Sunday, May 12, 2013 (IRDT)

相關內容