System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Change from daylights time 2020

 
SOLVED
Go to solution
Highlighted
Occasional Contributor

HP-UX B.11.31-Change from daylights time 2020

Hi everyone

Could someone tell me what is the procedure for changing from daylight time 2020 to winter time in Chile for HP-UX B.11.31?

Thanks

5 REPLIES 5
Highlighted
Honored Contributor
Solution

Re: Change from daylights time 2020

Timezone adjustments are automatic i HP-UX.
Your env variable $TZ will set the time based on this The file /usr/lin/tztab has all the timezone rules from around the world.
You should have Chile listed in that file.

If not, you can simply append this text to the end of /usr/lib/tztab:

 

# Time zone for Chile (Chile/Santiago Standard Time, Chile/Santiago Daylight Time)

CLT4CLST
0 23 23-29 3  1970      6 CLT4
0 23 8-14  3  1971-1986 6 CLT4
0 23 8-14  4  1987      6 CLT4
0 23 8-14  3  1988-1996 6 CLT4
0 23 24-30 3  1997      6 CLT4
0 23 8-14  3  1998      6 CLT4
0 23 1-7   4  1999      6 CLT4
0 23 8-14  3  2000-2007 6 CLT4
0 23 24-30 3  2008      6 CLT4
0 23 8-14  3  2009      6 CLT4
0 23 1-7   4  2010      6 CLT4
0 23 1-7   5  2011      6 CLT4
0 23 22-28 4  2012-2014 6 CLT4
0 23 8-14  5  2016-2018 6 CLT4
0 23 1-7   4  2019-2038 6 CLT4
0 1  9-15  10 1970-1972 0 CLST3
0 1  24-30 9  1973      0 CLST3
0 1  9-15  10 1974-1989 0 CLST3
0 1  16-22 9  1990      0 CLST3
0 1  9-15  10 1991-1997 0 CLST3
0 1  21-27 9  1998      0 CLST3
0 1  9-15  10 1999-2010 0 CLST3
0 1  16-22 8  2011      0 CLST3
0 1  2-8   9  2012-2014 0 CLST3
0 1  9-15  8  2016-2018 0 CLST3
0 1  2-8   9  2019-2038 0 CLST3

 

To read the documentation for the TZ variable, see the man page for environ.

To set the value for TZ, the file /etc/TIMEZONE must be sourced at login, typically by /etc/profile with a line like this:

. /etc/TIMEZONE

The . indicates to the login shell that the file is to be run as a series of shell commands.



Bill Hassell, sysadmin
Highlighted
HPE Pro

Re: Change from daylights time 2020

tztab(4) cumulative Patch PHCO_44798 includes Daylight Saving Time for Chile timezone (CLT4CLST).
Just make sure Patch PHCO_44798 or latest patch PHCO_44817 is installed and set the timezone to Chile.

Regards,
Manikandan
I work for HPE

Accept or Kudo

Highlighted
Occasional Contributor

Re: Change from daylights time 2020

Thanks Bill

Highlighted
Occasional Contributor

Re: Change from daylights time 2020

Thanks

Highlighted
Honored Contributor

Re: HP-UX B.11.31-Change from daylights time 2020

As mentioned above, the time adjustmentis made using the current value of $TZ
You must first edit the file /usr/lib/tztab and look for Chile.
Change the entry for Chile (or If not in the file) add the text above that contains the rules for Chile.
Then edit the file /etc/TIMEZONE and change it to:

TZ=CLT4CLST
export TZ

Now login and the time should match your local time.
If not, you will have to shutdown all databases and applications that use the current time value.
Then run this command and set the time:

# /sbin/set_parms date_time

Now you must reboot to make sure every process sees the new time of day.



Bill Hassell, sysadmin