Operating System - HP-UX
1753401 Members
7796 Online
108792 Solutions
New Discussion юеВ

Re: how to reset "Daylight Saving Time" ?

 
VtoK
Occasional Advisor

how to reset "Daylight Saving Time" ?

How to reset "Daylight Saving Time" auto change on HPUX 11

Thank you in advance.
vatless
7 REPLIES 7
Peter Godron
Honored Contributor

Re: how to reset "Daylight Saving Time" ?

Hi,
you could remove the DST patch.
Or wait until autumn ;-)

Why do you want to reset ?
James R. Ferguson
Acclaimed Contributor

Re: how to reset "Daylight Saving Time" ?

Hi:

If you don't want to honor Daylight Saving Time, choose (or construct your own) timezone that has no rules to change. See the manpages for 'tztab(4)' for the details you need.

Regards!

...JRF...
VtoK
Occasional Advisor

Re: how to reset "Daylight Saving Time" ?

hi,

thank you,

the problem is caused by ORACLE of course. I just want to avoid DTC.

How to remove that patch ?
vatless
Patrick Wallek
Honored Contributor

Re: how to reset "Daylight Saving Time" ?

To remove any software, including patches, you use 'swremove'.

# man swremove

for more information
VtoK
Occasional Advisor

Re: how to reset "Daylight Saving Time" ?

Thank you Patrick Wallek.

As i understood only thing i have to do is to add a new item in /usr/lib/tztab?

like NOTIMECHANGE without any record.

And how to set it in the system ?
vatless
Matti_Kurkela
Honored Contributor

Re: how to reset "Daylight Saving Time" ?

You should understand that any Unix computer understands time fundamentally as UTC time. The internal format of timestamps is always UTC-based. Whenever a local time is needed, the OS will convert the UTC-based internal format to the local time of the desired timezone.

When making time changes, first ensure that the system's understanding of the UTC time is correct: type "date -u" and verify that it displays the correct UTC time.

If UTC time is correct but local time is wrong, you have a timezone problem. Trying to fix it by changing the system time will cause other problems (e.g. you cannot use NTP time synchronization if your system's concept of UTC time is skewed to correct localtime errors, because NTP will always force the UTC time to correct value).

IF you want just to stop using the Daylight Saving Time rules, edit /etc/TIMEZONE and remove the Daylight Time part of the timezone specification.
For example, if you live in WST-3WSTDST and want to stop observing DST, change the timezone definition to just "WST-3". There is no need to change the rules in /usr/lib/tztab for this: the number "-3" in the timezone definition lets the system know the correct UTC offset, and the letters "WST" are just a human-readable name.

If you wish to start using a _new_ Daylight Saving Time scheme, you need to edit /usr/lib/tztab.

After changing /etc/TIMEZONE, you must logout & login (or change the TZ environment variable in your session) to make the change effective for your session. You must also restart all long-running processes (crond, syslogd, inetd and all server applications) to make them aware of the new timezone.

(The normal environment variable inheritance rules: login sessions read /etc/TIMEZONE when executing /etc/profile, and all the other processes get a copy of ther parent process's environment at the time they're started.)

The best way to make sure all processes are aware of the new setting is to reboot the system.
MK
VtoK
Occasional Advisor

Re: how to reset "Daylight Saving Time" ?

Thank you,

I have changed /etc/TIMEZONE
WST-2WSTDST to WST-2.

I hope it will be working :)

Thanks you for your help.
vatless