- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to change CDT to CST
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
Discussions
Forums
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
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
тАО03-18-2009 08:56 AM
тАО03-18-2009 08:56 AM
How to change CDT to CST
Does anybody know how to change the parameter Central Daylight Time (CDT) to Central Standard Time (CST)with the date command on HP-UX??
I have this:
Wed Mar 18 10:44:10 CDT 2009
but I would like to have this:
Wed Mar 18 10:44:10 CST 2009
How do i change it?
Thanks in advance...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 09:02 AM
тАО03-18-2009 09:02 AM
Re: How to change CDT to CST
When the rules changed in the US a couple of years ago, HP released a patch to implement a new file. Once you have that installed, the CST/CDT will display correctly.
By the way, we are in CDT right now. It started on March 8th this year.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 09:07 AM
тАО03-18-2009 09:07 AM
Re: How to change CDT to CST
Each user can establish his/her own timezone preference in their '.profile' by setting and exporting the TZ variable. Generally this is done system-wide in '/etc/profile' when the '/etc/TIMEZONE' file is sourced.
To change your system-wide setting, edit '/etc/TIMEZONE' or run '/sbin/set_parms' passing the keyword "timezone" as its argument.
To see what your time might look like, do:
# TZ=CST6 date
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 09:44 AM
тАО03-18-2009 09:44 AM
Re: How to change CDT to CST
1. Edit /usr/lib/tztab
# Central Standard Time, Central Daylight Time
CST6CDT
0 3 24-30 4 1970-1973 0 CDT5
0 3 6 1 1974 0-6 CDT5
0 3 22-28 2 1975 0 CDT5
0 3 24-30 4 1976-1986 0 CDT5
0 3 1-7 4 1987-2038 0 CDT5 -> April
0 1 25-31 10 1970-1973 0 CST6
0 1 24-30 11 1974 0 CST6
0 1 25-31 10 1975-2038 0 CST6 -> October
2. #echo $TZ
CST6CDT
3. #date 031811282009
4. #date
Wed Mar 18 11:28:00 CST 2009
then Shazammm!!! that's what I wanted. In Mexico we change the time 2 weeks after than US or Canada.
Thanks for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 09:45 AM
тАО03-18-2009 09:45 AM
Re: How to change CDT to CST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 10:45 AM
тАО03-18-2009 10:45 AM
Re: How to change CDT to CST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 11:28 AM
тАО03-18-2009 11:28 AM
Re: How to change CDT to CST
You should do what Dave suggested and use a special timezone for Mexico, not change the one for the US.
By editing tztab, you will not be able to patch it in the future without manual intervention.