- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- date 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
07-15-2002 12:47 AM
07-15-2002 12:47 AM
i find a strange problem:
i use root:
# date
Mon Jul 15 04:50:16 EDT 2002
use pin
tsrad22>date Mon Jul 15 16:50:48 EAT 2002
time is different(two date command used within one minute),whats up
i think its impossible hehe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 12:53 AM
07-15-2002 12:53 AM
Re: date problem
is it possible, that your user "pin" is using a home directory on a different computer using NFS? This would be an answer to your question, if on the other computer a different time zone is used. Or is a different time zone given for your user in /$HOME/.profile or in .dtprofile?
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 12:58 AM
07-15-2002 12:58 AM
Re: date problem
If you set the environment variable TZ to another timezone and type 'date, you will give different datetime also.
Try to 'echo $TZ' at each user level and see
what is the difference.
As you can see the timezone of the date is EDT and EAT.
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 01:00 AM
07-15-2002 01:00 AM
Re: date problem
Your problem is related to different timezones being used for two different users.
The 'real' timezone should be set for your system from the /etc/profile file which also refers to /etc/TIMEZONE. If either of these differs to what you standard user is, then one eor the other is wrong. Select the correct timezone for you and update the appropriate files. Have a look at /usr/lib/tztab for more information.
To get each timezone use this command:
$ echo $TZ
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 01:25 AM
07-15-2002 01:25 AM
Re: date problem
it is difference in the time zone EAT & EDT.
otherwise u can check AM/PM. because for example 4:50 without AM or PM specification is equl to 16:50 PM.
regds
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 01:29 AM
07-15-2002 01:29 AM
Re: date problem
try
# telnet
see whats the result !!
-Niraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 03:49 AM
07-15-2002 03:49 AM
Re: date problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 06:01 AM
07-15-2002 06:01 AM
Re: date problem
"date" uses the TZ environmental variable to format its output. Apparantly one user has $TZ set to something with EDT and the other has EAT. On my systems, EAT does not exist in /usr/lib/tztab. This causes date to use UTC, just the same as using "date -u".
Do "echo $TZ" for each user and compare the results. Also, check for both TZ settings in /usr/lib/tztab. If either isn't found, "date" is using UTC for that even though may display EAT.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 04:56 PM
07-15-2002 04:56 PM
Re: date problem
export TZ=EAT-8
but it dont work next time i login
maybe i should write it in a file ,but which file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 05:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 05:06 PM
07-15-2002 05:06 PM
Re: date problem
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 05:25 PM
07-15-2002 05:25 PM
Re: date problem
$ export TZ=EAT-8
To make it permanent change directory to users home directory and edit there .profile file and add the same entry as below, and save the file.
export TZ=EAT-8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 05:46 PM
07-15-2002 05:46 PM
Re: date problem
This member has assigned points to 63 of 219 responses to his/her questions
http://forums.itrc.hp.com/cm/TopSolutions/1,,CA752374!1!questions,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 06:54 PM
07-15-2002 06:54 PM
Re: date problem
i have pointed all respones to my question
i didnt mean to it,i jsut forget about it :(
sorry for everyone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 04:23 AM
07-16-2002 04:23 AM
Re: date problem
GREAT job! I realize it probably took some time, but you did it, and we thank you!
This member has assigned points to 209 of 220 responses to his/her questions.
What an improvement!
give me an N/A here
live free or die
harry