- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing from EST to GMT
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
Forums
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
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
02-05-2007 03:18 AM
02-05-2007 03:18 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2007 03:24 AM
02-05-2007 03:24 AM
SolutionYou simply need to change your timezone variable, TZ. No reboot is necessary!
If you want to make this global to the system, modify '/etc/TIMEZONE'. This file is sourced by '/etc/profile'. If you want only selected users to use UTC (GMT) then set and export TZ=UTC in their profile.
Time keeping occurs in UTC. A timezone if only a known offset (positive or negative) from UTC (GMT). It is what you *perceive* to be your local time. In fact, it is what we call "local time". You can see various times in various zones thusly:
# TZ=UTC date
# TZ=EST5EDT date
# TZ=MET-1METDST date
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2007 03:25 AM
02-05-2007 03:25 AM
Re: Changing from EST to GMT
all you have to do is edit the file and set
TZ=GMT0
However, currently running processes won't have a clue that anything has changed and will retain their TZ settings. The safest approach would be to schedule a reboot but that is not absolutely necessary.
You also need to give some thought to how your applications store timestamps -- especially "home-grown" applications. For example, if your applications store time as something like YYYY MM DD hh mm ss rather than epoch seconds then making this transition can be difficult.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2007 03:26 AM
02-05-2007 03:26 AM
Re: Changing from EST to GMT
If you mean the system wide default, you need to edit /etc/TIMEZONE and restart any long-running processes like databases and cron. Don't *need* to reboot, but it would insure that you got everything.
If its just for certain users, edit their profiles and set TZ accordingly.
Note that the underlying system time is always UTC, the TZ settings only impact how the time is displayed to user/application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2007 03:32 AM
02-05-2007 03:32 AM
Re: Changing from EST to GMT
Bear in mind that you might have users connected from all over the planet -- each with a different (and correct) TZ setting. All you are doing is changing the default for some of the system processes and you should also note that the last TZ setting wins. For example, if TZ is set in /etc/TIMEZONE and then later in a user's .profile it is set to something else (or even set explicitly in a script) then that setting is the one that cvounts for that process -- exactly as it should.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2007 04:42 AM
02-05-2007 04:42 AM