1838571 Members
3240 Online
110128 Solutions
New Discussion

system time and date

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

system time and date

hey everyone,

how do I set up the time so it shows pacific standard time and not MST on my system. Any help will be greatly appreciated and points wil be given.
7 REPLIES 7
Helen French
Honored Contributor

Re: system time and date

Hi,

You can set it through date command. See man date for more details.

HTH,
Shiju
Life is a promise, fulfill it!
Jeff Schussele
Honored Contributor
Solution

Re: system time and date

Hi Sanman

As root run

#set_parms timezone

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Roger Baptiste
Honored Contributor

Re: system time and date


/sbin/set_parms timezone will do it.


-raj
Take it easy.
John Carr_2
Honored Contributor

Re: system time and date

set_parms timezone is what you need , date is based on the TZ environment variable checkout environ TZ too.

cheers
john.
Jeff Schussele
Honored Contributor

Re: system time and date

Hi Sanman,

Thanks - you just gave me my Mortarboard.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: system time and date

Hi,

I should have read the question correctly ! You can set this value in the 'TZ' environmental varibale. Do 'env' and find out the current set vale. Check /etc/profile for exported values.

Also you can do it through set_parms

HTH,
Shiju
Life is a promise, fulfill it!
Darrell Allen
Honored Contributor

Re: system time and date

Hi Sanman,

If you want everyone to see the same timezone (unless their TZ environmental variable is changed), you can run set_parms timezone. This will change /etc/TIMEZONE which is checked by the standard /etc/profile to set TZ.

Of course, you could simply edit /etc/TIMEZONE. And you should verify /etc/profile is actually setting TZ.

Last, if you have users in different timezones, you may want to edit their .profiles or do some other scripting in /etc/profile to set TZ for their location.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)