I live in Seattle, and the timezone settings I use in Linux are the settings for Los Angeles. I am not quite sure what happened exactly, but I would guess some update I ran broke the Los Angeles file…
I only noticed the issue when some cronjobs were firing off early.. and some posts in a forum had odd dates.
[root@server home]# date
Mon Dec 27 01:36:33 UTC 2010
Well it’s 5:36 here, and it should say PST not UTC. So 5:36+ 8hours is 1:36 UTC. The date and time is correct, there is just something wrong with the timezone.
[root@server home]# ls -lah /etc/localtime
lrwxrwxrwx 1 root root 37 Dec 26 17:43 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles
The symbolic link to the Los Angeles Timezone file is correct… so it should be correct…
Luckily, Vancouver B.C. Canada is in the same time zone and follows the same daylight savings time.
http://en.wikipedia.org/wiki/Daylight_saving_time_around_the_world
ln -sf /usr/share/zoneinfo/America/Vancouver /etc/localtime
[root@server home]# date
Sun Dec 26 17:43:46 PST 2010
Not the best solution… but it works. I could have dug around for a correct LA file, but that seems much easier.
Related posts:
0 Responses to “Linux Los Angeles Timezone’s broken”