Link to home
Start Free TrialLog in
Avatar of biffsmith
biffsmith

asked on

System Time - SuSe Linux

I have a machine running SuSe Linux 9.0.  I have changed the time on this machine twice...it sticks for a little while (a couple of hours) and then changes back to one hour earlier (darn early Daylight Savings Time change!).

I've changed the time both via command line as root and also through the GUI.  I'm guessing that this machine is going out to the web and getting an updated time from somewhere, but I can't find how to turn that off, if that is, in fact, what's happening.

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of ShineOn
ShineOn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh, after you untar it, you use the zic (zone info compiler) to compile the new info into your zones databases.

SuSE Linux 9.0 should be smart enough to link the databases to your local zone setting in /etc

However - since it's SuSE Linux 9 (don't know if it's Enterprise or not, but...) you should check the Novell site.

Here's a link for the official patches for SLES: http://www.novell.com/support/dynamickc.do?externalId=3853518&sliceId=SAL_Public&command=show&forward=nonthreadedKC&kcId=3853518
Avatar of biffsmith
biffsmith

ASKER

Thanks, ShineOn!   I updated my zone info and now the date on my intranet web pages (that are housed on this machine) is correct (they are php pages just using the PHP date command), but when I run the unix date command at the prompt it's showing 1 hour later.  This is bizarre.

Any reason why that is?

Is the date command displaying the correct time zone?

Did you re-establish the symlink to the correct zone in /etc/localtime?

Did you make sure PHP is using the correct time zone?  PHP has its own zone settings, in various places. Only if no other TZ settings are found does PHP do a "magical guess" at the timezone based on the host OS settings.

Check your code for the date_default_timezone_set function.  Check config.php.  Check for a TZ environment variable. Check for a userconfig.php.  Look for date.timezone.