Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System Clock

Status
Not open for further replies.

superstarjpmc

Programmer
Jan 22, 2004
38
US
How does the AIX system clock made to work, to automatically change the time from GMT to BST and Vice versa, when the local time changes ?

 
You need to set the following in /etc/environment

TZ=GMT0BST,M3.5.0,M10.5.0

The above is stating that the time changes on:
M3.5.0 Month3 (March) Week 5 Day 0 (Sunday)
M10.5.0 Month3 (March) Week 5 Day 0 (Sunday)

The defualt time for the change is 02:00

Unfortunatly you need to reboot the server once you have set the above - or sometime before the end of October.

You can set things manually using

smit time
 
Just to avoid any confusion, the second line:

M3.5.0 Month3 (March) Week 5 Day 0 (Sunday)

should be:

M10.5.0 Month10 (October) Week 5 Day 0 (Sunday)

An alternative way of changing the environment file is to use:

chtz GMT0BST,M3.5.0,M10.5.0

man chtz for more info.

HTH.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top