[devscripts] 01/02: debchange: Honor DEBCHANGE_TZ if it's set
James McCoy
jamessan at debian.org
Sat Dec 7 03:33:04 UTC 2013
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch master
in repository devscripts.
commit ce018c158551506ca5156c2edfc95466424f1ec7
Author: James McCoy <jamessan at debian.org>
Date: Fri Dec 6 22:32:12 2013 -0500
debchange: Honor DEBCHANGE_TZ if it's set
Signed-off-by: James McCoy <jamessan at debian.org>
---
scripts/debchange.pl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/debchange.pl b/scripts/debchange.pl
index 3ec288d..6114592 100755
--- a/scripts/debchange.pl
+++ b/scripts/debchange.pl
@@ -992,7 +992,11 @@ if (@ARGV and ! $TEXT) {
}
# Get the date
-my $DATE=strftime "%a, %d %b %Y %T %z", localtime();
+my $DATE;
+{
+ local $ENV{TZ} = $opt_tz if $opt_tz;
+ $DATE = strftime "%a, %d %b %Y %T %z", localtime();
+}
if ($opt_news && !$opt_i && !$opt_a) {
if ($VERSION eq $changelog{'Version'} && !$opt_v && !$opt_l) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list