Bug#486594: timestamps

Julian Gilbey julian at d-and-j.net
Sun Dec 1 10:57:30 UTC 2013


On Sun, Dec 01, 2013 at 12:00:51AM -0500, James McCoy wrote:
> > Since there seems to be no way to feed a "%s" value to date, I
> > decided to use strftime(), and thus get rid of the date -R
> > invocation. It seems to me that globally setting the locale to "C"
> > doesn't cause trouble ("dch Ìnîtíãl release." is fine) but I may be
> > wrong. However, there could be a better solution with the
> > Email::Date::Format package ; it takes care of formatting time
> > according to RFC 2822 and doesn't touch the locale. It does exactly
> > what we want in a clean way, so it's probably worth depending on it.
> 
> That does look useful, but if there aren't any side effects to setting
> LC_TIME, I'd prefer that over adding a dependency.  It's still simple
> enough code.

I personally prefer the locale-aware dates in the changelog: when I
look at my own changelogs, I sometimes want to know when I wrote them;
having to manually convert into my own locale is a pain.  I doubt that
many users would have a particular need or desire to convert changelog
timestamps into their own locale.

   Julian



More information about the devscripts-devel mailing list