From: Brian Marshall on
Hi all,

Recently, I noticed that the date format in the output from "ls -l" has
changed in squeeze. Before, it used the ISO standard (2010-05-29 20:00)
but now it's started printing "May 29 20:00" or "May 29 2009" if it's
not the current year.

My locale, which hasn't changed in years, is en_US.UTF-8. If I run ls
with LC_TIME="ja_JP.UTF-8", I get the ISO format, so ls is still capable
of displaying it.

Two servers running lenny and a box running Ubuntu 10.04, all with the
en_US.UTF-8 locale, display the ISO format.

I suspect it's coreutils' fault, because while the version of the
locales package is about the same in Ubuntu and Debian (2.11 and 2.10),
coreutils is significantly newer in Debian (8.5 compared to 7.4).

Can anyone else confirm this issue? Is it a bug or a feature? How can I
get ls to print the ISO date format again?

Thanks,
Brian
From: Teemu Likonen on
* 2010-05-29 20:25 (-0700), Brian Marshall wrote:

> Recently, I noticed that the date format in the output from "ls -l"
> has changed in squeeze. Before, it used the ISO standard (2010-05-29
> 20:00) but now it's started printing "May 29 20:00" or "May 29 2009"
> if it's not the current year.

> I suspect it's coreutils' fault, because while the version of the
> locales package is about the same in Ubuntu and Debian (2.11 and
> 2.10), coreutils is significantly newer in Debian (8.5 compared to
> 7.4).
>
> Can anyone else confirm this issue? Is it a bug or a feature? How can
> I get ls to print the ISO date format again?

Yes, the default has changed. You can change the default with TIME_STYLE
environment variable, like this:

export TIME_STYLE=long-iso

Related tips here:

http://people.debian.org/~osamu/pub/po4a/html/ch09.en.html#_customized_display_of_time_and_date

--
Feel free to Cc me your replies if you want to make sure I'll notice
them. I can't read all the list mail.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/87aari3twk.fsf(a)mithlond.arda
From: Teemu Likonen on
* 2010-05-30 07:17 (+0300), Teemu Likonen wrote:

> Related tips here:

Here's a better link which points to the Debian Reference manual:

http://www.debian.org/doc/manuals/debian-reference/debian-reference.en.html#_customized_display_of_time_and_date


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/8763263tpw.fsf(a)mithlond.arda
From: Brian Marshall on
On Sun, May 30, 2010 at 07:17:31AM +0300, Teemu Likonen wrote:
> * 2010-05-29 20:25 (-0700), Brian Marshall wrote:
>
> > Recently, I noticed that the date format in the output from "ls -l"
> > has changed in squeeze. Before, it used the ISO standard (2010-05-29
> > 20:00) but now it's started printing "May 29 20:00" or "May 29 2009"
> > if it's not the current year.

> Yes, the default has changed. You can change the default with TIME_STYLE
> environment variable, like this:
>
> export TIME_STYLE=long-iso

Thanks, this works.

On Sun, May 30, 2010 at 07:21:31AM +0300, Teemu Likonen wrote:
> Here's a better link which points to the Debian Reference manual:
>
> http://www.debian.org/doc/manuals/debian-reference/debian-reference.en.html#_customized_display_of_time_and_date

Thanks for the link.

Any idea why the default was changed? I guess it didn't really make
sense to change the date format based on whether it was an ISO-8859 or
UTF-8 locale? (en_US.ISO-8859, to my knowledge, has always used the date
format that en_US.UTF-8 is now using.)

Brian
From: Andrei Popescu on
On Sat,29.May.10, 22:58:59, Brian Marshall wrote:
>
> Any idea why the default was changed? I guess it didn't really make
> sense to change the date format based on whether it was an ISO-8859 or
> UTF-8 locale? (en_US.ISO-8859, to my knowledge, has always used the date
> format that en_US.UTF-8 is now using.)

Why not? This way people using other languages now have a localized
date.

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic