- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to change date : from BST 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
04-15-2003 08:48 AM
04-15-2003 08:48 AM
Hello,
When I type the command "date" the result is :
#date
Tue Apr 15 17:41:45 BST 2003
I wish change BST to GMT, can someone help me ?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 08:50 AM
04-15-2003 08:50 AM
Re: How to change date : from BST to GMT ?
should do it for you.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 08:50 AM
04-15-2003 08:50 AM
Re: How to change date : from BST to GMT ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 08:54 AM
04-15-2003 08:54 AM
Re: How to change date : from BST to GMT ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 08:57 AM
04-15-2003 08:57 AM
Re: How to change date : from BST to GMT ?
Do you know if this modification is permanent... for instance after a reboot ?
Another question, which files are concerned by this modification ?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:00 AM
04-15-2003 09:00 AM
Re: How to change date : from BST to GMT ?
You only need to change your TZ variable.
export TZ=GMT0
then try your date again.
I'm curious - are you in an area that does not use British Summer Time?
I suspect that your default system time (set by set_parms timezone) is GMT0BST & you've now shifted to the British Summer Time & that's why the date is now showing BST.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:03 AM
04-15-2003 09:03 AM
Re: How to change date : from BST to GMT ?
/sbin/set_parms sets your time zone upon booting. If you have to reset
the time zone, you can use /sbin/set_parms.
You can also check
http://docs.hp.com/hpux/pdf/B2355-90742.pdf
Chapter#3 Section Making Adjustment
Thanks
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:03 AM
04-15-2003 09:03 AM
Re: How to change date : from BST to GMT ?
Check /etc/default/tz
That's where the default TZ is held.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:03 AM
04-15-2003 09:03 AM
Re: How to change date : from BST to GMT ?
The actual time of a server should not change nor does not need to change for timezone representation.
The envrionmental variable TZ holds the timezone as defined in '/usr/lib/tztab'.
A global declaration for TZ is placed in '/etc/TIMEZONE'. This is sourced when a login occurs and '/etc/profile' is read. Indivicual users can (and are free to) set their own TZ value in their own profiles, scripts or for the duration of a command only, as, for instance:
# TZ=MST7MDT date;date
...which would return the current date and time in US Mountain time and in the server's local time.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:05 AM
04-15-2003 09:05 AM
Re: How to change date : from BST to GMT ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:05 AM
04-15-2003 09:05 AM
SolutionZafar's "export" method changes the date display in your current session only, it doesn't survive a logout, not to say a reboot.
Zafar's "date" method displays UTC once only.
The affected files are only one: /etc/TIMEZONE
Hope this helps,
Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 09:10 AM
04-15-2003 09:10 AM
Re: How to change date : from BST to GMT ?
PERFECT, thanks to all !