- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- uncorrect time setting
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
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
тАО04-29-2003 01:18 AM
тАО04-29-2003 01:18 AM
uncorrect time setting
when I execute date on different verson of Tru64 I get different answers.I mean I lost information about time zone(Moscow) for second output.
Question. How I could fix this problem? Does exist some special patch from HP on this matter? Or I need to compile timezone by myself?
> uname -a
OSF1 V5.1 732 alpha
> date
Tue Apr 29 13:01:09 MSD 2003
>
----------------
> uname -a
OSF1 V4.0 1229 alpha
> date
Tue Apr 29 12:55:32 ???? 2003
Kirill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 02:07 AM
тАО04-29-2003 02:07 AM
Re: uncorrect time setting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 02:37 AM
тАО04-29-2003 02:37 AM
Re: uncorrect time setting
> date
Tue Apr 29 12:35:10 2003
set locale to standard C definition
> setenv LC_ALL C
> date
Tue Apr 29 12:35:50 MEST 2003
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 02:48 AM
тАО04-29-2003 02:48 AM
Re: uncorrect time setting
> uname -a
OSF1 V4.0 1229 alpha
> locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
--------
> uname -a
OSF1 V5.1 732 alpha
> locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
variable TZ doesn't set for both machines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 03:16 AM
тАО04-29-2003 03:16 AM
Re: uncorrect time setting
Login via root leads automatically to the timezone info.
Please try to set the LC_ALL variable and check if output differs. What patchkit is installed on 4.0f? (btw. 4.0f is out of support, no engineering support at all).
Workaround on 4.0f is to substitute the command via login shell like
date'=date +"%a %b %d %r %Z %Y"
leading to the correct output.
Check also if there is still a command substitution in one of your login files by using
which date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 03:16 AM
тАО04-29-2003 03:16 AM
Re: uncorrect time setting
Login via root leads automatically to the timezone info.
Please try to set the LC_ALL variable and check if output differs. What patchkit is installed on 4.0f? (btw. 4.0f is out of support, no engineering support at all).
Workaround on 4.0f is to substitute the command via login shell like
date='date +"%a %b %d %r %Z %Y"'
leading to the correct output.
Check also if there is still a command substitution in one of your login files by using
which date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 10:45 AM
тАО04-29-2003 10:45 AM
Re: uncorrect time setting
add/modify the following in your /etc/TIMEZONE file -
TZ=GMT[+|-]
HTH.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2003 11:57 PM
тАО04-29-2003 11:57 PM
Re: uncorrect time setting
Look at directory /etc/zoneinfo/sources
You will find the file europe you need to edit.
When setting correctly the standard & daylight
saving time run the command zic
watch the setting with command zdump
An example from my system:
# cd /etc/zoneinfo/sources
edit the file asia
change the two lines of 2003 to be:
Rule Zion 2003 only - Mar 28 1:00 1:00 D
Rule Zion 2003 only - Oct 3 1:00 0 S
# zic -l Israel -v asia
# zdump -v Israel | grep 2003
Israel Wed Apr 9 11:31:26 2003 IDT
Israel Thu Mar 27 22:59:59 2003 GMT = Fri Mar 28 00:59:59 2003 IST isdst=0 gmt0
Israel Thu Mar 27 23:00:00 2003 GMT = Fri Mar 28 02:00:00 2003 IDT isdst=1 gmt0
Israel Thu Oct 2 21:59:59 2003 GMT = Fri Oct 3 00:59:59 2003 IDT isdst=1 gmt0
Israel Thu Oct 2 22:00:00 2003 GMT = Fri Oct 3 00:00:00 2003 IST isdst=0 gmt0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2003 07:43 AM
тАО05-08-2003 07:43 AM
Re: uncorrect time setting
calvin.alf.cpqcorp.net:> cd /etc/zoneinfo
calvin.alf.cpqcorp.net:> ls -l localtime
lrwxrwxrwx 1 root system 16 Apr 10 2002 localtime -> America/New_York
calvin.alf.cpqcorp.net:> rm localtime
calvin.alf.cpqcorp.net:> date
Tue Apr 8 19:06:34 GMT 2003
(note the output above is GMT if the localtime link is removed)
calvin.alf.cpqcorp.net:> ln -s EST localtime
calvin.alf.cpqcorp.net:> date
Tue Apr 8 14:06:49 EST 2003
calvin.alf.cpqcorp.net:> rm localtime
calvin.alf.cpqcorp.net:> ln -s America/New_York localtime
calvin.alf.cpqcorp.net:> date
Tue Apr 8 15:07:26 EDT 2003
The time changes are immediate.
Cheers,
Christian Klein
HP Tru64 Unix Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2003 11:53 PM
тАО05-08-2003 11:53 PM
Re: uncorrect time setting
The locale "C" settings contains per specification the timezone field. Have a look to my reply for an example.