GNU bug report logs - #37130
27.0.50; Tar mode should use the ISO8601 format to display the timestamps (or support TIME_STYLE or locales)

Previous Next

Package: emacs;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Wed, 21 Aug 2019 14:32:01 UTC

Severity: wishlist

Tags: fixed

Found in version 27.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> mouse.gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 37130 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> mouse.gnus.org>
Cc: 37130 <at> debbugs.gnu.org, vincent <at> vinc17.net
Subject: Re: bug#37130: 27.0.50;
 Tar mode should use the ISO8601 format to display the timestamps (or
 support TIME_STYLE or locales)
Date: Fri, 23 Aug 2019 11:36:20 +0300
> From: Lars Ingebrigtsen <larsi <at> mouse.gnus.org>
> Date: Fri, 23 Aug 2019 05:46:26 +0200
> Cc: 37130 <at> debbugs.gnu.org
> 
> Vincent Lefevre <vincent <at> vinc17.net> writes:
> 
> > When tar-mode-show-date is set to t (to get the timestamps), the
> > Tar mode displays them in a non-standard format. It should use
> > the ISO8601 format (this is what GNU tar does).
> 
> I think it makes sense to follow GNU tar's lead here, so I've now done
> this on the trunk.

Yuck! what an ugly format!

> > Other formats (e.g. one corresponding to the locales) could be used
> > via an option; in particular, the support of the TIME_STYLE
> > environment variable (see coreutils manual) would be a good idea.
> 
> I think that sounds like overkill for tar-mode, but perhaps there should
> be a general function somewhere for using TIME_STYLE throughout Emacs
> whenever time/dates are displayed.

I think we should just make the format used for the time stamp a user
option, that would be a good-enough solution.  It will also provide a
"fire escape" to get the old behavior for those, like me, who might
dislike the ISO8601 format.  We must provide such
backward-compatibility options anyway when we change behavior in
incompatible ways.

Finally, this change should be in NEWS (including the to-be-added
backward-compatibility shim).

Thanks.




This bug report was last modified 5 years and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.