Trying to change the system time, but no luck at all..

I have searched in many many places and I think you cannot adjust the time for Solaris 10 x86 on a CDE desktop...THIS IS VERY IMPORTANT TO MY APPLICATIONS FOR LOGGING....So please, will someone please post a reply ASAP? I am using Solaris 10 on Intel and I am using CDE. Ever since DST, my clock is very off by one hour ahead...I am dual-booting with Windows 2000 and because thats the case, is that the problem? Because in Windows, the timezone is set to adjust DST automatically...So, is there any way to adjust the CDE clock in Solaris because I am in a total lost here. I have been in 5 forums, and nobody knows and I searched google and nothing came up. Also searched in pages and nothing about adjusting the system clock in CDE..Is there a command for this?

This is very urgent since all of my apps have to be logged by time.


EDIT>>> No need to reply...I got it working after hours of searching:

Its actually:

# date HHMM

thats it.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

In Solaris system time is always UTC.
Your system should not ajust system clock, but every program that need local time should use localtime() or similar function calls to get local time (adjusted to UTC)

Your default timezone is located in file /etc/TIMEZONE
where you can find variable like this:

It's a zone file name, relative to /usr/share/lib/zoneinfo dir

Also there where recent patches to Solaris where zoneinfo files where updated according to latest changes (it was in March).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
while Solaris uses a reliable method to query and adjust date/time, windows relies on the BIOS and also sets the time in the BIOS.
So, if you dual boot, then you have to tell Solaris that the BIOS time is your localtime and not UTC. Simply set in /etc/TIMEZONE:
just add a bit more details to the previous comments.

To change the TIMEZONE for your system:

1.have a look at  a list of the TIMEZONE you can use:
   ls /usr/share/lib/zoneinfo
2. edit /etc/TIMEZONE file, change the TZ variable (I've done this)
  you might need to change the LC_TIME var if required


PS: You can use different timezone for the applications, eg:
define the ENV var TZ in the application user's .profile
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Split between Nopius #16357824 and yuzh #16358573

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer
I guess that my comment is as valuabel is the others, someone disagrees?
I agreed with ahoffmann. Since the system is dual boot
M$ Windows could reset the BIOS time and cause problem.
I cannot agree - the actual system time unlike in other cases in this case will be wrong.
Actually all the dupes should be reduced. Sorry for not noticing.
> ..  the actual system time unlike in other cases in this case will be wrong.
what du you mean?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.