- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to disable timezone settings on HP-UX 10.2...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 03:59 AM
12-23-2008 03:59 AM
After I checked the environment viarables, the TZ was set to Middle Europe time.
Who could tell me how to disable the clock-jumping, because there is no summer time in China.
Best wishes!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 04:11 AM
12-23-2008 04:11 AM
Re: How to disable timezone settings on HP-UX 10.20
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 04:53 AM
12-23-2008 04:53 AM
Re: How to disable timezone settings on HP-UX 10.20
If there is no DST (or multiple zones) in China, xumingyong can invent his own timezone:
TZ=CHINA-8
>set the TZ variable to null.
This may set it to EST. Better to use GMT0?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 05:11 PM
12-23-2008 05:11 PM
Re: How to disable timezone settings on HP-UX 10.20
you are right, I checked the manual, if TZ=null, then TZ was set to EST5DST by default.
Thanks.............
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 05:28 PM
12-23-2008 05:28 PM
Re: How to disable timezone settings on HP-UX 10.20
--------------------
TZ=MET-1METDST
--------------------
In /usr/lib/tztab,
--------------------
...
# Middle European Time, Middle European Time Daylight Savings Time
MET-1METDST
0 3 25-31 3 1983-2038 0 METDST-2
0 2 24-30 9 1983-1995 0 MET-1
0 2 25-31 10 1996-2038 0 MET-1
...
----------------------
Could I simpely modify METDST-2 to METDST-1 to solve this question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 06:06 PM
12-23-2008 06:06 PM
SolutionTZ=CHINA+8
export TZ
Or set it to the value that matches your location in China. The value +8 corresponds to Zhong Guo (Hong Kong). The TZ value is defined the man page: man environ
If you do not find your timezone in tztab, then define your own. The first word (CHINA) is anything you want to use and the + or - numbers represent the offset from UTC or Zulu time (also known as GMT). With just the name and the offset, there will be no Daylight Saving change on your machine. Note that you will have to change the system's time to match your local time *after* you make the TIMEZONE file change, and login again.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 06:41 PM
12-23-2008 06:41 PM
Re: How to disable timezone settings on HP-UX 10.20
This gives you the time for Europe.
>Could I simply modify METDST-2 to METDST-1 to solve this question?
As Bill said, you do not modify tztab(4) except to possibly add new timezones.
In your case, you don't need to add a timezone since you don't have DST.
>Bill: Or set it to the value that matches your location in China.
It seems there is only one timezone.
>the + or - numbers represent the offset from UTC
These are the numbers when added to local time give UTC. The opposite of Windows.
>you will have to change the system's time to match your local time *after* you make the TIMEZONE file change
Is this to refresh the demons' ideas of local time?
Also, if TZ=MET-1METDST, it is very likely the system UTC time is broken.
What does this show?
date -u
It should be about 0240 on Dec 24.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 10:31 PM
12-23-2008 10:31 PM
Re: How to disable timezone settings on HP-UX 10.20
If you feel you problem solved then please spend some more time and assign points to gurus.
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
Plz go throug this link to konw how to assign points.
Suraj