can't change timezone on Fedora Core
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
I've set
ZONE="Europe/London"
in /etc/sysconfig/clock
I've set my TZ environment variable to
Europe/London
And still, date
returns EDT for the timezone.
Does anyone have any other ideas for setting the timezone?
6 Replies
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
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.
@rjp:
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.
/usr/share/zoneinfo/America/New_York
did not work for me, but
this:
/usr/share/zoneinfo/posix/America/New_York
worked fine
On debian it's
dpkg-reconfigure tzdata
Not sure about Fedora.
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