#!/usr/bin/perl
-# $Id: db2html.in,v 1.15 2003/05/25 13:19:13 joy Exp $
+# $Id: db2html.in,v 1.16 2003/05/25 13:25:51 joy Exp $
# usage: db2html [-diff] [-stampfile=<stampfile>] [-lastrun=<days>] <wwwbase>
#load the necessary libraries/configuration
'forwarded','forwarded to upstream software authors');
#set timestamp for html files
-$dtime = strftime "%a, %e %b %Y %T UTC", localtime;
+$dtime = strftime "%a, %e %b %Y %T UTC", gmtime;
$tail_html =~ s/SUBSTITUTE_DTIME/$dtime/;
#check for commandline switches
#!/usr/bin/perl
-# $Id: html-control.in,v 1.8 2002/11/17 22:45:16 cjwatson Exp $
+# $Id: html-control.in,v 1.9 2003/05/25 13:25:51 joy Exp $
-use POSIX;
+use POSIX qw(strftime);
$config_path = '/etc/debbugs';
$lib_path = '/usr/lib/debbugs';
rename("stamp.html","stamp.html.run") or &quit("rename stamp.html: $!");
} else {
$lastsub=0;
- chop($lastmain=`TZ=GMT date '+%Y%m%d%H%M%S'`);
+ $lastmain = strftime "%Y%m%d%H%M%S", gmtime;
$args= '-full';
unlink('stamp.html') || $!==&ENOENT or &quit("excise stale stamp.html: $!");
}