Operating System - HP-UX
1826415 Members
3793 Online
109692 Solutions
New Discussion

Re: "date" not showing correctly

 
SOLVED
Go to solution
Coolmar
Esteemed Contributor

"date" not showing correctly

Hi,

I have a server with 2 npars and 2 vpars per npar. On one of the vpars, the date shows as follows:

Thu Apr 14 16:22:11 cst 2005

Notice the "cst"...on all other vpars, and even our stand-alone HP systems, the cst should be all caps "CST". We are having some code problems that have to do with the date, and I wonder if this could be the issue. Does anyone know if it really matters if the timezone is caps or not, as the system has to be rebooted to change it and I would prefer not to reboot if I don't have to.

Thanks
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: "date" not showing correctly

This is UNIX, case matters. Modify /etc/TIMEZONE. You can do it "on the fly" although you will need to logout/login for the change to take effect. Long running daemons won't know that you have made this change so a rebbot may be necessary --- or a restart of the daemons.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: "date" not showing correctly

By the way, it's just barely possible that someone made a custom entry in /usr/lib/tztab for "cst6cdt" or something similar so check for that. Also, it's possible that TZ is defined in some users' .profile's rather than globally in /etc/TIMEZONE. It could also be set in /etc/profile.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: "date" not showing correctly

One more thought: Probably the daemon that is of most concern is cron. Everything should work normally until it's time for a timechange because the offset hours appear to be correct. At timechange time, there is probably no matching tztab entry and your cronjobs are triggered at the wrong times.



If it ain't broke, I can fix that.
Coolmar
Esteemed Contributor

Re: "date" not showing correctly

Thanks!