Operating System - HP-UX
1753720 Members
4847 Online
108799 Solutions
New Discussion юеВ

Re: How to change the time and time zone

 
SOLVED
Go to solution
mvpel
Trusted Contributor

Re: How to change the time and time zone

Does set_parms change the system-wide time zone, such as what timestamp is used in syslog and for cron jobs? If not you might need a reboot to fully implement the new time zone in every respect.

The time zone is essentially a display filter - the system clock is always in UTC, so I wouldn't think that changing the time zone would affect Oracle database transactions.
senthil_kumar_1
Super Advisor

Re: How to change the time and time zone

Do we need to restart the server after changing the TIME ZONE?

Since the time zone has not been changed even after changing the time zone using the command "#/sbin/set_parms timezone"


FYI...

# date
Wed Dec 9 07:00:07 NST 2009

# more /etc/default/tz
CST6CDT

# more /etc/TIMEZONE
TZ=CST6CDT
export TZ


So do i need to restart the server to effect the new time zone?

or how to do this with out restart?
James R. Ferguson
Acclaimed Contributor

Re: How to change the time and time zone

Hi Senthil:

> Do we need to restart the server after changing the TIME ZONE?

Processes that were started before the change that continue to run will need to be restarted to see the new timezone rules if this is important to them.

For your sanity, I would reboot.

Regards!

...JRF...
Sp4admin
Trusted Contributor

Re: How to change the time and time zone

Looks like you got the answer. I use the "set_parms timezone" command to set the date and time.

sp,
Dennis Handly
Acclaimed Contributor

Re: How to change the time and time zone

>how to do this with out restart?

For an individual user you can just use:
. /etc/TIMEZONE

As JRF says, for system demons/processes, you probably have to reboot.