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

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

On Thu, Jun 29, 2006 at 13:31:56 -0400, Bill Marcum wrote:
>On Wed, Jun 28, 2006 at 11:45:32AM +0100, Magnus Therning wrote:
>> (The following is based on my experience. I hope I'm not entirely wrong
>> in my understanding of how this works. :-)
>> If you log in on a regular terminal (i.e. not in X at all) then
>> /etc/environmentis used. Mine looks like this:
>>   LANGUAGE="en_GB:en_GB:en"
>>   LANG=en_GB.UTF-8
>> The dpkg-reconfigure you did should have affected that file. However,
>> I'm not sure whether it'll take effect without a reboot.
>> If you log in using a display manager (GDM, KDM, ...) then it might set
>> the locale itself (I know GDM does). AFAIK you have to log out, change
>> the locale, then log in again in order to change it.
>The OP was asking why "date" does not show the time in the correct time
>zone.  That is set by /etc/timezone or the TZ environment variable.
>The locale affects the language for month and weekday names, whether
>dates are shown in m/d/y or d/m/y or y-m-d format, and whether time is
>shown in 12 or 24 hours.

Ah, thanks for the correction :-)


Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus@therning.org             Jabber: magnus.therning@gmail.com

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

As we enjoy great advantages from the inventions of others we should
be glad of an opportunity to serve others by any invention of
ours, and this we should do freely and generously.
     -- Benjamin Franklin

Attachment: pgphbetAyo2ar.pgp
Description: PGP signature

Reply to: