From: Karen Etheridge Date: Tue, 8 Jul 2014 01:28:52 +0000 (-0700) Subject: use UTC for datestamp in Changes file, not local time X-Git-Tag: v0.002000~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=033544b92eda45fedcf9f5311af16743e01de63a;p=p5sagit%2FDistar.git use UTC for datestamp in Changes file, not local time --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 26ed270..6bee4f1 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -101,7 +101,7 @@ sub run_preflight { length && die "Outstanding changes"; } my $ymd = sprintf( - "%i-%02i-%02i", (localtime)[5]+1900, (localtime)[4]+1, (localtime)[3] + "%i-%02i-%02i", (gmtime)[5]+1900, (gmtime)[4]+1, (gmtime)[3] ); my $changes_line = "$version - $ymd\n"; my @cached = grep /^\+/, `git diff --cached -U0`;