From ae6efeb9eea241a51246bdccfefbc5b2ed61a5f1 Mon Sep 17 00:00:00 2001 From: b Date: Sun, 2 Mar 2025 18:18:06 +0000 Subject: [PATCH] show page generation time --- bsta_lib.1.pm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/bsta_lib.1.pm b/bsta_lib.1.pm index 7fe9a8e..92566d5 100644 --- a/bsta_lib.1.pm +++ b/bsta_lib.1.pm @@ -706,7 +706,23 @@ sub print_html_body_end { print $fh ' source code'."\n"; print $fh '

'."\n"; } - print $fh ' '.html_entity_encode_dec(WEBSITE(),1).''."\n"; + print $fh '

'."\n"; + print $fh ' '.html_entity_encode_dec(WEBSITE(),1).''."\n"; + print $fh '

'."\n"; + unless ($hide_credits) { + my $gen_time = time(); + my @time_tab = gmtime($gen_time); + print $fh '

'."\n"; + print $fh sprintf ( + ' Page generated %04d.%02d.%02d %02d:%02d UTC.'."\n", + $time_tab[5]+1900, + $time_tab[4]+1, + $time_tab[3], + $time_tab[2], + $time_tab[1] + ); + print $fh '

'."\n"; + } print $fh ' '."\n"; } -- 2.30.2