Difference in date output

HiCan anyone tell me why I am getting a difference in the date format on 2 different Solaris servers?On one I get: -

Monday,  9 November 2009 09:02:45 GMT

and the other: -

Monday November  9 09:03:05 GMT 2009

Both servers are running OS Version M-11/16/88iCan anyone tell me why one uses a "," and the other doesn't?Thanks

---------- Post updated at 10:04 AM ---------- Previous update was at 09:10 AM ----------

Sorry I should add that is the output from a straight date command with no format string

This is a ksh version, not a Solaris one.

Different locale configuration:

$ LC_TIME=C date -u
Mon Nov  9 11:39:25 GMT 2009
$ LC_TIME=en_US.UTF-8 date -u
Monday, November  9, 2009 11:39:29 AM GMT

That's great thanks :slight_smile:

Hi,
You have check the env file what is the type of local and server time they have set.

use the below command for check the data format in env file

env | grep -i date

Well it seems that things are a little more mysterious than thought; echoing the value of LC_TIME gives: -

en_GB.ISO8859-1

on both servers. Grepping date from env returns nothing. Can anyone suggest any other route of investigation?

The English locale might not be properly installed (or installed at all) on one of these servers.

Compare the output of these commands on both servers:

truss -t open,stat date
apptrace -v 'setlocale,strftime' date