View Full Version : Timezone annoyance
macubergeek
04-07-2002, 08:17 AM
Ok I set the timezone in the system prefs to Eastern but at the command line date shows PDT as timezone.
How do I change this to EDT?
WillyT
04-08-2002, 11:49 AM
Have you logged out and back in since the change. Though my time zone changed automatically from CST to CDT while I was logged in.
What do you get with[darwin:~] williamt% diff /etc/localtime /usr/share/zoneinfo/US/Eastern
Binary files /etc/localtime and /usr/share/zoneinfo/US/Eastern differ You shouldn't have any output from diff. And if you do then your localtime is wrong. Are you set up to somehow get you clock synced to the web. That might be a gotcha.
But the most likely gotcha is setting TZ in your shell environment.
date will look for TZ being set first then fall back on localtime if it is not.
macubergeek
04-08-2002, 12:27 PM
ok here's what I get:
jamesk @ /tmp@HOME-->diff /etc/localtime /usr/share/zoneinfo/US/Eastern
Binary files /etc/localtime and /usr/share/zoneinfo/US/Eastern differ
jamesk @ /tmp@HOME-->
jamesk @ /tmp@HOME-->date
Mon Apr 8 13:09:17 PDT 2002
jamesk @ /tmp@HOME-->
yup the time is correct just the TZ is wrong
how do I set the TZ variable in my environment?
I tried this in ~/.tcshrc
setenv TZ=EST/EDT and now date shows time in GMT
Where is TZ set?
macubergeek
04-08-2002, 06:49 PM
Ok blush blush I figgered it out
just reboot the computer, reset the date and time prefs and sync with time server. All is good now.
thanks for your help
WillyT
04-08-2002, 07:42 PM
If you want to set TZ try this:
setenv TZ=/usr/share/zoneinfo/US/Eastern
I havent figured out the other syntax available for TZ
Metzen
02-21-2003, 03:08 PM
First off, download this (http://homepage.mac.com/trententtye5/zoneinfo.sit) to your Desktop, unstuff it, quit everything but the Terminal and do the following:
prompt% cd /usr/share
:/usr/share] prompt% sudo rm -R zoneinfo
:/usr/share] prompt% sudo cp -R ~/Desktop/zoneinfo zoneinfo
That's it! Open up your System Preferences and you'll now be able to select your time zone and your time will adjust accordingly.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.