Operating System - HP-UX
1751779 Members
4540 Online
108781 Solutions
New Discussion юеВ

Re: Date Display Differences

 
SOLVED
Go to solution
Jash_1
Frequent Advisor

Date Display Differences

Chaps,

Any idea why 2 hp-ux servers on the same version of 11.23 would show the date differently?

One shows 11:03 BST 2008

The other 11:03 AM

It is bothering some of my users.
If I can, I will!
5 REPLIES 5
Sandeep_Chaudhary
Trusted Contributor
Solution

Re: Date Display Differences

It depend on language


EXAMPLES
Date in Different Languages
Display the date. In this example, the TZ environment variable
contains PST8PDT, and the language environment variables are set as
noted.

date -> Fri Aug 20 15:03:37 PDT 1993 <- C (default)
date -u -> Fri Aug 20 22:03:37 UTC 1993 <- C (default)
date -> Fri, Aug 20, 1993 03:03:37 PM <- en_US.roman8 (U.S. English)
date -> Fri. 20 Aug, 1993 03:03:37 PM <- en_GB.roman8 (U.K. English)
date -> 20/08/1993 15.47.47 <- pt_PT.roman8 (Portuguese)

Jash_1
Frequent Advisor

Re: Date Display Differences

So how do I change it so they are the same?
If I can, I will!
Sandeep_Chaudhary
Trusted Contributor

Re: Date Display Differences

can u just check information on those machine related to language, locale, Timezone. Is it different.
Pete Randall
Outstanding Contributor

Re: Date Display Differences

This is controlled by the LANG environment variable. Try running "echo $LANG" on both machines and see what you get. In order to make them the same, you'll need to find where LANG is being set and make them the same. The first place I would look would be /etc/profile.


Pete

Pete
Jash_1
Frequent Advisor

Re: Date Display Differences

Thanks guys. $LANG now set the same and displaying same date.
If I can, I will!