#!/usr/bin/perl
-# $Id: db2html.in,v 1.17 2003/05/25 13:49:53 joy Exp $
+# $Id: db2html.in,v 1.18 2003/05/25 14:43:30 joy Exp $
# usage: db2html [-diff] [-stampfile=<stampfile>] [-lastrun=<days>] <wwwbase>
#load the necessary libraries/configuration
require("$lib_path/errorlib");
$ENV{'PATH'} = $lib_path.':'.$ENV{'PATH'};
-use POSIX qw(strftime);
+use POSIX qw(strftime tzset);
+$ENV{"TZ"} = 'UTC';
+tzset();
#set current working directory
chdir("$gSpoolDir") || die "chdir spool: $!\n";
'forwarded','forwarded to upstream software authors');
#set timestamp for html files
-$dtime = strftime "%a, %e %b %Y %T UTC", gmtime;
+$dtime = strftime "%a, %e %b %Y %T UTC", localtime;
$tail_html =~ s/SUBSTITUTE_DTIME/$dtime/;
#check for commandline switches
if ($preserveonly) {
$submitted = 'THIS IS A BUG IN THE BUG PROCESSOR';
} else {
- $submitted = strftime "%a, %e %b %Y %T %Z", gmtime($data->{date});
+ $submitted = strftime "%a, %e %b %Y %T %Z", localtime($data->{date});
}
$submitted= "; dated $submitted";
$indexpart= "pending$addseverity";
#!/usr/bin/perl
-# $Id: html-control.in,v 1.9 2003/05/25 13:25:51 joy Exp $
+# $Id: html-control.in,v 1.10 2003/05/25 14:43:30 joy Exp $
-use POSIX qw(strftime);
+use POSIX qw(strftime tzset);
+$ENV{"TZ"} = 'UTC';
+tzset();
$config_path = '/etc/debbugs';
$lib_path = '/usr/lib/debbugs';
rename("stamp.html","stamp.html.run") or &quit("rename stamp.html: $!");
} else {
$lastsub=0;
- $lastmain = strftime "%Y%m%d%H%M%S", gmtime;
+ $lastmain = strftime "%Y%m%d%H%M%S", localtime;
$args= '-full';
unlink('stamp.html') || $!==&ENOENT or &quit("excise stale stamp.html: $!");
}
#!/usr/bin/perl
-# $Id: process.in,v 1.69 2003/05/25 13:32:02 joy Exp $
+# $Id: process.in,v 1.70 2003/05/25 14:43:30 joy Exp $
#
# Usage: process nn
# Temps: incoming/Pnn
-use POSIX qw(strftime);
+use POSIX qw(strftime tzset);
+$ENV{"TZ"} = 'UTC';
+tzset();
use Mail::Address;
use MIME::Parser;
print DEBUG "###\n",join("##\n",@msg),"\n###\n";
-$tdate = strftime "%a, %d %h %Y %T UTC", gmtime;
+$tdate = strftime "%a, %d %h %Y %T UTC", localtime;
$fwd= <<END;
Received: via spool by $baddress\@$gEmailDomain id=$nn
(code $codeletter ref $tryref); $tdate