- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting GMT time
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-01-2002 09:16 PM
тАО05-01-2002 09:16 PM
I have a system in local time (i think ) and I need to set this server to GMT time so the developer can do some test on their program.
How do I change the time to GMT and back?
regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2002 09:28 PM
тАО05-01-2002 09:28 PM
SolutionAny user can overwrite the TZ value in his environment (e.g. for sh): TZ=GMT0BST
See /usr/lib/tztab for all possible TZ values.
I think there is no need to change/set the real-time clock of your machine.
Hartmut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2002 09:32 PM
тАО05-01-2002 09:32 PM
Re: Setting GMT time
You need to use the 'date' program.
date [-u] [mmddhhmm[[cc]yy]]
e.g.
To set the date as 2nd may 2002 for 1:05AM
# date -u 050201052002
The -u options indicates the UTC or GMT.
Have a look at the man page for a full description.
Cheers
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2002 09:32 PM
тАО05-01-2002 09:32 PM
Re: Setting GMT time
change the TZ variable.
TZ=
eg
TZ=GMT-5.30
Thanks
G Manikandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2002 09:35 PM
тАО05-01-2002 09:35 PM
Re: Setting GMT time
If you wish to set it for the whole system, then following is the neatest way:
# set_parms timezone
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2002 09:47 PM
тАО05-01-2002 09:47 PM
Re: Setting GMT time
you can achive this in two ways
1. As steven says set_params
(Recommended)
2.
# vi /etc/TIMEZONE
Change the TZ variable
TZ=GMT
Niraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 12:24 AM
тАО05-02-2002 12:24 AM
Re: Setting GMT time
This is possible in two ways.
1. The best way is by using the command
# set_parms timezone
2. By changing the value of the TZ variable in the /etc/TIMEZONE file
So choice is yours.
-Sukant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 05:30 AM
тАО05-02-2002 05:30 AM
Re: Setting GMT time
actually you need three steps:
- modify your system's TZ by editing "/etc/TIMEZONE", like most already told you
- setting your system's clock to UTC, like Michael told you
- reboot your system to make ALL your daemons aware of the new timezone...
HTH,
Wodisch