Frans Pop wrote:
> 
> On Monday 06 September 2004 19:53, Joey Hess wrote:
> > AfAIK hwclock output never includes the timezone.
> 
> I'm afraid it does.
> 
> On a system installed with LANG=en_US (on which I based my report):
> # hwclock --show --localtime | awk '{NF-=2; print $0}'
> Mon 06 Sep 2004 09:00:31 PM CEST
> 
> On a system installed with [EMAIL PROTECTED]:
> # hwclock --show --localtime | awk '{NF-=2; print $0}'
> ma 06 sep 2004 18:53:11 CEST
> 
> This is of course after I selected my timezone to be Europe/Amsterdam. hwclock
> apparently (from the output in base-config) shows 'UTC' before timezone
> selection.
> 
> I've got no clue why it does not show the timezone in your situation.

Apparently, it looks at the "LANG" environment variable...

        LANG=C /sbin/hwclock --show --localtime
gives
        Tue Sep  7 02:22:16 2004  -0.463550 seconds
but
        LANG=en_US /sbin/hwclock --show --localtime
gives
        Tue 07 Sep 2004 02:23:24 AM EDT  -0.950496 seconds

Suggested fix: Use a "LANG=C" prefix.

Interesting...

I have no idea why the maintainers of hwclock care two figs about the LANG envariable. 
 But it seems they do.

Moral of the story: In a multicultural system like Debian, *everything* has to be 
tested with a variety of LANG values.  Welcome to the twenty-first century!

Rick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to