Solved

System Time - SuSe Linux

Posted on 2007-03-23
4
1,401 Views
Last Modified: 2013-12-05
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?
0
Comment
Question by:biffsmith
  • 3
4 Comments
 
LVL 35

Accepted Solution

by:
ShineOn earned 500 total points
ID: 18787241
Did you update the Zones databases and the etc/localtime or did you just manually change the system clock?

If the system is using UTC (as is normal) but displaying local time, if you don't fix your zones databases and etc/localtime to reflect the proper DST, when you change the clock, you're changing its UTC time to be different from reality.

If it is accessing an NTP time source, then it will sync its time back to "reality" it gets from the time source.  Without the  correct offsets in your zones tables, it will change the displayed local time accordingly.

Go to ftp://elsie.nci.nih.gov/pub/ and download the current tzdata tarball, and install it.
0
 
LVL 35

Expert Comment

by:ShineOn
ID: 18787251
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
0
 

Author Comment

by:biffsmith
ID: 18788087
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?

0
 
LVL 35

Expert Comment

by:ShineOn
ID: 18788507
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.  
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In order for businesses to be compliant with certain information security laws in some countries, you need to be able to prove that a user (which user it was becomes important to the business to take action against the user after an event has occurr…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now