- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: date and timezone problem
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-23-2002 01:17 AM
04-23-2002 01:17 AM
date and timezone problem
/etc/TIMEZONE
SST-8
but from the date command it shows SST only why
Tue Apr 23 17:20:21 SST 2002
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:27 AM
04-23-2002 01:27 AM
Re: date and timezone problem
I checked my server here and it contains two lines in the /etc/TIMEZONE file.
# cat TIMEZONE
TZ=IST-5:30
export TZ
When I saw your file, it contains only one line. Just add export TZ
Regards,
Sukant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:32 AM
04-23-2002 01:32 AM
Re: date and timezone problem
My TIMEZONE file contains two lines:
TZ=MET-1METDST
export TZ
date output is:
Tue Apr 23 11:36:30 METDST 2002
That's correct.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:32 AM
04-23-2002 01:32 AM
Re: date and timezone problem
On my machine date also shows abbreviated TZ
# cat /etc/TIMEZONE
TZ=MET-1MEST
export TZ
# date
Tue Apr 23 11:33:09 MEST 2002
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:37 AM
04-23-2002 01:37 AM
Re: date and timezone problem
The date and time indicated by the output of 'date' is already adjusted by 8 hrs from GMT, so there is no need to repeat "-8".
You can verify this by setting TZ to GMT using
export TZ=GMT
and run the 'date' command again. It will now display the GMT time.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:41 AM
04-23-2002 01:41 AM
Re: date and timezone problem
# echo $TZ
MET-1METDST
# date
Tue Apr 23 11:42:20 METDST 2002
# TZ=SST-8
# date
Tue Apr 23 17:42:37 SST 2002
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 01:45 AM
04-23-2002 01:45 AM
Re: date and timezone problem
If this is not your problem/question then please clarify.
For what it is worth, I could not find a timezone "SST" in /usr/lib/tztab. If you have one, then please post it (The *complete* entry, i.e. starting with the comments *above* "SST...", *to* the next blank line.).
For details, see the tztab(4) manual page.