Remote box keeps reverting the localtime to Eastern (America/New_York). cd /etc rm localtime && ln -s /usr/share/zoneinfo/UTC localtime fixes it - but it seems to revert from time to time, I presume from yum updates (or possibly an init script ??) In /etc/sysconfig there is a config file for it. I'd rather not manually edit it, it looks simple enough, but I'd rather use the tool if there is one. system-config-date wants to pull in ~ 20MB of stuff I don't want that looks like it is needed for a gui config tool, but yum can't find a system-config-date-tui alternative. Is there a text UI / console alternative, and what it is called? If not, where is the format for /etc/sysconfig/clock specified? Install is a xen image (originally CentOS 5.0), so selecting the desired local time at install wasn't an option. Right now it says: ZONE="America/New_York" UTC=false ARC=false Would changing ZONE to ZONE="UTC" be enough to keep my desired UTC localtime?
On Mon, 2009-04-06 at 10:57 -0700, Michael A. Peters wrote:> ...where is the format for /etc/sysconfig/clock specified?/usr/share/doc/initscripts-*/sysconfig.txt -- Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> PLEASE don't CC me; I'm already subscribed -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20090406/88c1c256/attachment-0002.sig>
Ignacio Vazquez-Abrams wrote:> On Mon, 2009-04-06 at 10:57 -0700, Michael A. Peters wrote: >> ...where is the format for /etc/sysconfig/clock specified? > > /usr/share/doc/initscripts-*/sysconfig.txtAh crap. It's a xen but since the hardware clock doesn't appear to be UTC then I guess I have to leave that the way it is because I can't alter the hardware clock. I suppose I have to set the time zone on a per user basis, bashrc then. I'll have to file a complaint and ask that they use utc for hardware clock on their xen hosts. Thanks.