Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2006 17:13:46 -0700
From:      Pete Slagle <freebsd-questions@voidcaptain.com>
To:        Robert Gabaree <lists@rawb.net>
Cc:        Greg 'groggy' Lehey <grog@FreeBSD.org>, freebsd-questions@freebsd.org
Subject:   Re: Time zone isn't displaying right one with 'tzsetup'
Message-ID:  <44ECEF3A.5000108@voidcaptain.com>
In-Reply-To: <20060823035500.GT1113@wantadilla.lemis.com>
References:  <68E7556C-F8C5-444D-8C8F-5C3AF3F2054A@rawb.net> <20060823035500.GT1113@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greg 'groggy' Lehey wrote:

> On Tuesday, 22 August 2006 at 23:45:19 -0400, Robert Gabaree wrote:
>> Hi,
>>
>> I tried to update my new server to the new time zone by running
>> 'tzsetup' and selecting Eastern.  However, instead of showing 11:45,
>> it shows 6:45 - 5 hours later.  I even tried to do a 'cp /usr/share/
>> zoneinfo/EST5EDT /etc/localtime" but it didn't help.  What can I do
>> to fix it?
> 
> That depends on whether you're running ntpd or not.  If you are, your
> best bet is to stop ntpd and run ntpdate, specifying the same server,
> then restart ntpd.
> 
> If you're not running ntpd, just set the date:
> 
>   date 08232355
> 
> See the man page for the format.
> 
> Greg

Also, instead of copying EST5EDT to /etc/localtime you can use a
symlink. That way when EST5EDT gets updated you will automatically use
the new version.

So,

  su
  cd /etc
  ln -s /usr/share/zoneinfo/EST5EDT localtime
  exit

Obviously, substitute the appropriate zoneinfo file if you are not on US
Eastern time.









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ECEF3A.5000108>