Link to home
Start Free TrialLog in
Avatar of kalmen
kalmen

asked on

How can I change my Solaris date from GMT to my local time?

Hi,

When I type date, i get:
Wed Feb 23 09:34:13 GMT 2005

How can I set it so it reads my local country timezone... I don't know if this can be done... Any thoughts or ideas?
SOLUTION
Avatar of Otetelisanu
Otetelisanu

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
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

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
> 3. use "date" command to change the time to the local time.
I would recommend use
ntpdate <ntp server>
or
rdate <rdate server>
to sync the time after the timezone change.

Regards,

Wesly
Avatar of kalmen

ASKER

Thanks all for everything. All was usefull. I had two solaris machines; one solaris 9 and the other solaris 7. In solaris 9, I found my timezone, but not in solaris 7. Any ideas if it were possible to create a timezone?

Thanks.
SOLUTION
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
Avatar of kalmen

ASKER

So I can add anything I want, even if it was xyz? Or like Iraq/Mousil?

Avatar of kalmen

ASKER

Sorry, I guess a better way to ask the question is:
If I can't find the timezone from the list, how can I add my own?
SOLUTION
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
SOLUTION
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
Avatar of kalmen

ASKER

That worked out just fine. I added the same timezone in Solaris 9 in the /etc/TIMEZONE and it worked well.

Thanks.