[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why date command don't use my time zone ?



Magnus Therning a écrit :
On Wed, Jun 28, 2006 at 10:27:25 +0200, KLEIN Stéphane wrote:
Hello,

I used tzconfig to set my time zone on Europe/Paris.

I've logout/login and call date command :

date
Wed Jun 28 08:26:19 UTC 2006

date command use UTC time zone and not Europe/Paris.

How can I fix that ?

What's your locale set to? (I suppose LC_TIME is especially
interesting.)

On my machine:

  % locale
  LANG=en_GB.UTF-8
  LANGUAGE=en_GB:en_GB:en
  LC_CTYPE="en_GB.UTF-8"
  LC_NUMERIC="en_GB.UTF-8"
  LC_TIME="en_GB.UTF-8"
  LC_COLLATE="en_GB.UTF-8"
  LC_MONETARY="en_GB.UTF-8"
  LC_MESSAGES="en_GB.UTF-8"
  LC_PAPER="en_GB.UTF-8"
  LC_NAME="en_GB.UTF-8"
  LC_ADDRESS="en_GB.UTF-8"
  LC_TELEPHONE="en_GB.UTF-8"
  LC_MEASUREMENT="en_GB.UTF-8"
  LC_IDENTIFICATION="en_GB.UTF-8"
  LC_ALL=
  % date
  Wed Jun 28 09:55:16 BST 2006

/M

Thanks.

I restart dpkg-reconfigure locales and select fr_FR.UTF-8@euro UTF-8 default locale.

But when I start % locale I've :

LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

Where can I set my default locale ?

--Stéphane



Reply to: