- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- date one hour behind, how to change EST to EDT in ...
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
тАО05-12-2009 10:51 AM
тАО05-12-2009 10:51 AM
TZ=EST5EDT
export TZ
# date
Tue May 12 13:46:28 EST 2009
# date
Tue May 12 13:48:10 EST 2009
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 10:53 AM
тАО05-12-2009 10:53 AM
Re: date one hour behind, how to change EST to EDT in date comman ?
Also, why does $TZ show this and not what I have in TIMEZONE file.
# echo $TZ
EST5EST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 11:01 AM
тАО05-12-2009 11:01 AM
SolutionFirst to fix ur problem try doing this.
# TZ=EST5EDT
# export TZ
# date
see if you get the right time.
Whats the time stamp on /etc/TIMEZONE file. Did someone change it after last reboot ?
Cheers,
-uvk
Like it or worked !! Click kudos !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 11:07 AM
тАО05-12-2009 11:07 AM
Re: date one hour behind, how to change EST to EDT in date comman ?
-r--r--r-- 1 bin bin 21 May 12 07:55 /etc/TIMEZONE
# last reboot
reboot system boot Sun Feb 1 10:11 still logged in
Apparently, someone changed it after last reboot.
I tried you commands and it seems to revert to correct time.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 11:24 AM
тАО05-12-2009 11:24 AM
Re: date one hour behind, how to change EST to EDT in date comman ?
Here's a quick way to demonstrate TZ's effect:
TZ=EST5EDT date
TZ=PST8PDT date
TZ=BillHassell6:21 date
A timezone with offsets to minutes and seconds works just fine. TZ only affects what you see -- system time is never changed. See the man page for environ and tzab.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 06:34 PM
тАО05-12-2009 06:34 PM
Re: date one hour behind, how to change EST to EDT in date comman ?
Because setting TZ always overrides setting of some file.
You can get the value out of the file by:
. /etc/TIMEZONE
Or you can reboot.