Date: Wed, 23 Aug 2006 07:27:31 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: jdow <jdow@earthlink.net> Cc: freebsd-questions@freebsd.org Subject: Re: Time zone isn't displaying right one with 'tzsetup' Message-ID: <44EBF553.90007@infracaninophile.co.uk> In-Reply-To: <10fb01c6c671$76eebf80$0225a8c0@Wednesday> References: <68E7556C-F8C5-444D-8C8F-5C3AF3F2054A@rawb.net> <10fb01c6c671$76eebf80$0225a8c0@Wednesday>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig28D8F8FDB9B20562614F9C02
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
jdow wrote:
> From: "Robert Gabaree" <lists@rawb.net>
>> I tried to update my new server to the new time zone by running=20
>> 'tzsetup' and selecting Eastern. However, instead of showing 11:45,=20
>> 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=20
>> to fix it?
>=20
> What time does your BIOS say? And did you tell Linux which time zone
> the BIOS thinks it is in?
>=20
> There is a UTC=3Dtrue or UTC=3Dfalse line in /etc/sysconfig/clock you
> might investigate.
Yeah, but this is *freebsd*-questions, so telling the OP how to fix
a Linux box is not very coherent.
You could well be exactly right on the diagnosis of the problem though:
the CMOS clock on the motherboard can either be set to run UTC or it can
be set to the local wall-clock time. The first (UTC) is preferred by Uni=
x
machines, the second by Windows. FreeBSD will cope with a CMOS clock
set to run using the local wall clock time in order to play nice on
multi-boot systems, but you have to tell the system it's operating in
that mode.
To change the setting, run /usr/sbin/tzsetup and when asked about the CMO=
S
clock on the first screen, choose 'Yes' if your machine runs FreeBSD alwa=
ys
or 'No' if you occasionally boot into Windows. Then choose your local
timezone from the menus. If, after doing that, there is a zero length fil=
e
/etc/wall_cmos_clock then you have set your system to use a CMOS clock se=
t
to wall clock time. See adjkerntz(1) for the full story.
After running tzsetup, either restart ntpd to force your machine to step
the clock a long way to sync with the server, or set the date/time manual=
ly
as Greg described upthread.
Cheers,
Matthew
--=20
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
--------------enig28D8F8FDB9B20562614F9C02
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE6/Va8Mjk52CukIwRCGkYAJ4pmADwEVxTMiivjtG5BkEwAmtwGQCcDlA5
XXseX2OVcLRDCm3EjVAuZdQ=
=NpiA
-----END PGP SIGNATURE-----
--------------enig28D8F8FDB9B20562614F9C02--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44EBF553.90007>
