FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-17-2011, 06:15 AM
Ben McGinnes
 
Default timezone issue

On 17/04/11 2:47 PM, Tim Dunphy wrote:
>
> But when I run ntpdate it returns the wrong time:
>
> 16 Apr 19:46:13 ntpdate[1968]: step time server 204.235.61.9 offset 14408.651330 sec
>
>
> [root@VIRTCENT08:/etc] #date
> Sat Apr 16 19:46:42 EST 2011
>
>
> can someone hit me upside the head with the cluehammer?

I've had another look at your strange American times available:

[root@seditious zoneinfo]# pwd
/usr/share/zoneinfo
[root@seditious zoneinfo]# ls -l EST*
-rw-r--r-- 1 root root 118 Apr 14 23:54 EST
-rw-r--r-- 1 root root 2294 Apr 14 23:54 EST5EDT
[root@seditious zoneinfo]# ls -l US/
total 96
-rw-r--r-- 2 root root 2358 Apr 14 23:54 Alaska
-rw-r--r-- 3 root root 2353 Apr 14 23:54 Aleutian
-rw-r--r-- 2 root root 327 Apr 14 23:54 Arizona
-rw-r--r-- 2 root root 3543 Apr 14 23:54 Central
-rw-r--r-- 3 root root 3519 Apr 14 23:54 Eastern
-rw-r--r-- 4 root root 1649 Apr 14 23:54 East-Indiana
-rw-r--r-- 2 root root 250 Apr 14 23:54 Hawaii
-rw-r--r-- 3 root root 2395 Apr 14 23:54 Indiana-Starke
-rw-r--r-- 2 root root 2202 Apr 14 23:54 Michigan
-rw-r--r-- 4 root root 2427 Apr 14 23:54 Mountain
-rw-r--r-- 2 root root 2819 Apr 14 23:54 Pacific
-rw-r--r-- 3 root root 290 Apr 14 23:54 Samoa
[root@seditious zoneinfo]#

What happens if you try /usr/share/zoneinfo/EST5EDT or
/usr/share/zoneinfo/US/Eastern?

Also, what happens when you try "date -u"? If that's actually different
from the real UTC, then your timezone data is less likely to be the cause.


Regards,
Ben


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-17-2011, 07:13 AM
John R Pierce
 
Default timezone issue

On 04/16/11 9:47 PM, Tim Dunphy wrote:
> 16 Apr 19:46:13 ntpdate[1968]: step time server 204.235.61.9 offset 14408.651330 sec

14400 seconds is 4 hours. not sure the significance of that, but...


the commonest issue with messed up time zones is whether the BIOS CMOS
clock is set to UTC or local, and whether the OS knows it correctly.

in addition to /etc/localtime (which really shoudl be copied from
/usr/share and not linked, if /usr is an alternate file system, the link
will not be available when the OS starts), there's /etc/sysconfig/clock
which tells the OS whether CMOS is UTC or not, and also gives the time
zone, and should give it as America/New_York, and not the EST5EDT style.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 04:03 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org