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

Bug#270239: Timezone configuration should not show 'UTC' after system time



Quoting Joey Hess (joeyh@debian.org):
> Frans Pop wrote:
> > The dialog asking the user whether his system clock is set to local time or 
> > GMT currently displays e.g:
> > The hardware clock says the time is now Sat 04 Sep 2004 11:16:20 AM UTC
> 
> I can't reproduce this. The command run to get the time is this:
> 
> hwclock --show --localtime | awk '{NF-=2; print $0}'
> Mon Sep 6 17:52:01 2004
> 
> AfAIK hwclock output never includes the timezone.

I'm afraid it does..:-)

root@cc-mykerinos:~# hwclock --show --localtime | awk '{NF-=2; print $0}'
mar 07 sep 2004 04:58:51 CEST

root@cc-mykerinos:~# LC_ALL=C hwclock --show --localtime | awk '{NF-=2; print $0}'
Tue Sep 7 04:59:18 2004

root@cc-mykerinos:~# LC_ALL=en_US hwclock --show --localtime | awk '{NF-=2; print $0}'
Tue Sep 7 04:59:32 2004


So, this seems to depend on the locale. The format of time is part of
a locale definition.

As a consequence, handling Frans request is very tricky because each
locale may have its special way to display times and thus we cannot
assume a fixed number of part or whatever...or even that the timezone
is displayed last




Reply to: