summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-02-08 12:54:05 +0000
committergrant <grant@pkgsrc.org>2004-02-08 12:54:05 +0000
commit727d3d4ea3a976d87c622c062f8b86f014dca14f (patch)
treead15062697a52240a3683de64e25ddd2d2effe5f /mk
parent7c20219a75637c46b2d885198dbc6c99c1985101 (diff)
downloadpkgsrc-727d3d4ea3a976d87c622c062f8b86f014dca14f.tar.gz
print date and time in UTC.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/post-build8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/bulk/post-build b/mk/bulk/post-build
index 637b2c1ff37..564279553b0 100644
--- a/mk/bulk/post-build
+++ b/mk/bulk/post-build
@@ -1,5 +1,5 @@
#!/usr/pkg/bin/perl
-# $NetBSD: post-build,v 1.32 2004/02/08 09:13:43 grant Exp $
+# $NetBSD: post-build,v 1.33 2004/02/08 12:54:05 grant Exp $
#
# Collect stuff after a pkg bulk build
#
@@ -7,6 +7,7 @@
#
use File::Basename;
+use POSIX ();
# Where config vars are stored (/bin/sh syntax)
@@ -33,7 +34,6 @@ getconf("REPORT"); # "broken.html"
getconf("USR_PKGSRC"); # "/usr/pkgsrc"
getconf("osrev"); # `uname -r`
getconf("arch"); # `uname -m`
-$enddate=localtime(time());
$reportf=basename($REPORT);
chomp($os=`uname -s`);
@@ -64,7 +64,9 @@ $startdate = (stat($STARTFILE))[9];
if ($startdate == 0) {
$startdate = "unknown";
} else {
- $startdate = localtime($startdate)."";
+ local $ENV{TZ} = "UTC";
+ $startdate = POSIX::strftime("%c %Z", gmtime($startdate));
+ $enddate = POSIX::strftime("%c %Z", gmtime(time()));
}
$verbose=1;