summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorgrant <grant>2004-02-08 12:54:05 +0000
committergrant <grant>2004-02-08 12:54:05 +0000
commit68bfa9a74d4d973959fa1b183d58114859112911 (patch)
treead15062697a52240a3683de64e25ddd2d2effe5f /mk/bulk
parentb0cb5f9064e9704f872b6fccf98263273b221434 (diff)
downloadpkgsrc-68bfa9a74d4d973959fa1b183d58114859112911.tar.gz
print date and time in UTC.
Diffstat (limited to 'mk/bulk')
-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;