HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Time zone defaults to EST in HP-UX box with 11iv1
Operating System - HP-UX
1833772
Members
2179
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-27-2006 07:17 PM
11-27-2006 07:17 PM
Time zone defaults to EST in HP-UX box with 11iv1
Greetings,
One of my end-user reported an error in a test server that 'date' command shows time in IST if you logged in as root and in EST with other users. I observed that users .profile is not properly executed/ shell is not initialised. So checked file permission of /etc/profile:
-r-------- 1 bin bin 2886 Nov 24 17:29 /etc/profile (somebody overwritten the file in the test server and hence Application was getting "wrong time")
It is changed to default 444 and the issue is resolved.
Now please let me know, if HP-UX saves time in UTC or EST irrespective of TIMEZONE variable??
Why date command shows
[ref: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=988392]
---------------------------
tchtest1(root)!/ >date
Tue Nov 28 13:42:47 IST 2006
---------------------------
login: test1
Password:
Last successful login for test1: Tue Nov 28 13:41:51 IST-5:30 2006 on pts/tg
Last unsuccessful login for test1: Tue Nov 28 12:47:12 IST-5:30 2006 on pts/th
Please wait...checking for disk quotas
$ date
Tue Nov 28 03:12:24 EST 2006
$
One of my end-user reported an error in a test server that 'date' command shows time in IST if you logged in as root and in EST with other users. I observed that users .profile is not properly executed/ shell is not initialised. So checked file permission of /etc/profile:
-r-------- 1 bin bin 2886 Nov 24 17:29 /etc/profile (somebody overwritten the file in the test server and hence Application was getting "wrong time")
It is changed to default 444 and the issue is resolved.
Now please let me know, if HP-UX saves time in UTC or EST irrespective of TIMEZONE variable??
Why date command shows
[ref: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=988392]
---------------------------
tchtest1(root)!/ >date
Tue Nov 28 13:42:47 IST 2006
---------------------------
login: test1
Password:
Last successful login for test1: Tue Nov 28 13:41:51 IST-5:30 2006 on pts/tg
Last unsuccessful login for test1: Tue Nov 28 12:47:12 IST-5:30 2006 on pts/th
Please wait...checking for disk quotas
$ date
Tue Nov 28 03:12:24 EST 2006
$
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 07:33 PM
11-27-2006 07:33 PM
Re: Time zone defaults to EST in HP-UX box with 11iv1
The time is saved in UTC. So once you fixed the TIMEZONE file or export TZ correctly, your dates on files should display correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 08:21 PM
11-27-2006 08:21 PM
Re: Time zone defaults to EST in HP-UX box with 11iv1
But if shell is not initialised properly or TZ is not, why it is showing time in EST?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 08:32 PM
11-27-2006 08:32 PM
Re: Time zone defaults to EST in HP-UX box with 11iv1
>But if shell is not initialised properly or TZ is not, why it is showing time in EST?
Because the original authors of UNIX were in the east coast, EST.
Because the original authors of UNIX were in the east coast, EST.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP