Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 20, 2007 7:08 am 
Offline
Newbie

Joined: Thu Aug 30, 2007 10:02 am
Posts: 4
I've tried:
Code:
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime

I've set
Code:
ZONE="Europe/London"
in /etc/sysconfig/clock

I've set my TZ environment variable to
Code:
Europe/London


And still, `date` returns EDT for the timezone.

Does anyone have any other ideas for setting the timezone?


Top
   
PostPosted: Thu Sep 20, 2007 8:13 am 
Offline
Newbie

Joined: Thu Aug 30, 2007 10:02 am
Posts: 4
Looking in /usr/share/zoneinfo, it seems some files work, and some don't - meaning `date` resorts to EDT.

/usr/share/zoneinfo/GB doesn't work, but /usr/share/zoneinfo/posix/GB does - providing British Summer Time.
I'm not sure why this is - but my problem seems to be solved.

Thanks


Top
   
 Post subject:
PostPosted: Thu Sep 20, 2007 8:20 am 
Offline
Senior Member
User avatar

Joined: Fri Aug 15, 2003 2:15 pm
Posts: 111
Website: http://fubegra.net/
I think you need to copy the zoneinfo file into /etc/localtime rather than symlink it. You might also need to reboot.

There is a GUI tool system-config-time that can do the work for you. Running GUI programs on a Linode is beyond the scope of this message, though... you could use ssh -X (not into LISH!) or a VNC desktop.

FWIW, I prefer to run servers on UTC.

_________________
Bus error (passengers dumped)


Top
   
 Post subject:
PostPosted: Thu Sep 20, 2007 2:02 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
rjp wrote:
I think you need to copy the zoneinfo file into /etc/localtime rather than symlink it. You might also need to reboot.


Copying is better because if the target of the symlink isn't ready very early in the boot process (eg if /usr is on a different filesystem from root) then the system will default to as if it had no timezone file.

Rebooting is a good idea because any already running process that's referenced localtime (think, for example, syslog) will retain the old data.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Mon Jan 11, 2010 4:33 pm 
Offline
Newbie

Joined: Mon Jan 11, 2010 3:00 pm
Posts: 2
I experienced this problem too:
/usr/share/zoneinfo/America/New_York
did not work for me, but

this:
/usr/share/zoneinfo/posix/America/New_York
worked fine


Top
   
 Post subject:
PostPosted: Mon Jan 11, 2010 8:31 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Shouldn't this be handled by the distribution rather than by copying files and symlinks around? If your distro does handle it and you're going around that, you're looking for trouble.

On debian it's
Code:
dpkg-reconfigure tzdata

Not sure about Fedora.


Top
   
 Post subject:
PostPosted: Mon Jan 11, 2010 8:40 pm 
Offline
Newbie

Joined: Mon Jan 11, 2010 3:00 pm
Posts: 2
I used Centos. There is a gui tool, but there is no problem with doing it manually on redhat distros.

distro tools aside, copying a file to /etc/localtime is the way to do it furthest down the "stack". If that doesn't work, there is a problem somewhere


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group