1839808 Members
3495 Online
110156 Solutions
New Discussion

Change Timezone

 
SOLVED
Go to solution
Harstad
Advisor

Change Timezone

Hi

How can I change the Timezone without using the "set_parms" script??.

Date command??

Thanks

regards
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: Change Timezone

Change the $TZ variable!


Pete



Pete
Mark Grant
Honored Contributor

Re: Change Timezone

I think you just set it in the shell. There is a file /etc/TIMEZONE which gets run (if it exists) by default by /etc/profile so you export your TZ variable in there and make sure every application that is interested in the new timezone re-reads it's environment. In practice, this probably means re-booting the machine which means you may as well have used set_parms.
Never preceed any demonstration with anything more predictive than "watch this"
Thierry Poels_1
Honored Contributor

Re: Change Timezone

hi,

depends ...

systemwide? : set_parms is the supported (read also safest) option.

for one or more users : set the TZ variable in their profile.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Jeff Schussele
Honored Contributor

Re: Change Timezone

Hi Harstad,

Unless overridden by a $TZ value, the system-wide default is kept in /etc/TIMEZONE.

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

Re: Change Timezone

Harstad,
set_parms is the right way to do for a system wide change.
or export TZ in /etc/profile or the individual users .profile to effect the change.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!