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

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



On Tuesday 07 September 2004 05:00, Joey Hess wrote:
> Unfortunatly I can't think of a good way to remove the time zone from
> the display that'll work for all LC_TIME settings.

I think this may work, at least for all situations where 'UTC' is appendend 
(which I think will be the majority in practice, as e.g. nl_NL also shows 
UTC):

hwclock --show --localtime | awk '{NF-=2; print $0}' | sed 's/ UTC//'
                                                    ~~~~~~~~~~~~~~~~~

This will remove UTC if present and leave any other parts of the string alone. 
So it should not break any languages/locales (even if it does not fix the bug 
for them).
This fix also is independent of where UTC is positioned in the string.

AFAICT other values for timezone (like CEST) are not relevant as no timezone 
will be set if base-config is first run. It could even be argued that it 
would be a good thing to _show_ the current timezone if base-config is re-run 
after installation is completed and one _is_ selected.



Reply to: