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

Re: Bug#417261: dch: please use dates in UTC



On Monday 02 April 2007 15:11, Stefano Zacchiroli wrote:
> I share the feeling of "niceness" of the personal touch, but this isn't
> a technical reason, and the point of uniforming a timezone so that it's
> easier to compare dates among different changelog is definitely a valid
> one.

That is not really a valid reason either because converting a timestamp 
from a changelog entry to any other timezone or format is trivial:

$ D="$(zgrep "^ -- " /usr/share/doc/apt/changelog.Debian.gz | \
> head -1 | sed "s/^.*>  //")"
$ echo $D
Mon, 26 Feb 2007 16:00:22 -0500

$ date -uRd "$D"
Mon, 26 Feb 2007 21:00:22 +0000

Or if you prefer seconds since the epoch for easy comparison:
$ date -d "$D" +%s
1172523622

Attachment: pgpuZ8_nglpbv.pgp
Description: PGP signature


Reply to: