Merge pull request #3126 from ChrisJr404/banner-utc-offset

Show the UTC offset in the start and done banner
This commit is contained in:
Dirk Wetter
2026-08-31 11:02:38 +02:00
committed by GitHub
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -79,11 +79,11 @@ $debughtml = `cat $html_file`;
unlink $html_file; unlink $html_file;
# Remove date information from the Start and Done banners in the two HTML files, since they were created at different times # Remove date information from the Start and Done banners in the two HTML files, since they were created at different times
$html =~ s/Start 2[0-9][0-9][0-9]-[0-3][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9]/Start XXXX-XX-XX XX:XX:XX/; $html =~ s/Start 2[0-9][0-9][0-9]-[0-3][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(UTC offset: [+-][0-9][0-9][0-9][0-9]\)/Start XXXX-XX-XX XX:XX:XX (UTC offset: +XXXX)/;
$debughtml =~ s/Start 2[0-9][0-9][0-9]-[0-3][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9]/Start XXXX-XX-XX XX:XX:XX/; $debughtml =~ s/Start 2[0-9][0-9][0-9]-[0-3][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(UTC offset: [+-][0-9][0-9][0-9][0-9]\)/Start XXXX-XX-XX XX:XX:XX (UTC offset: +XXXX)/;
$html =~ s/Done 2[0-9][0-9][0-9]-[0-3][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \[ *[0-9]*s\]/Done XXXX-XX-XX XX:XX:XX [ Xs]/; $html =~ s/Done 2[0-9][0-9][0-9]-[0-3][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(UTC offset: [+-][0-9][0-9][0-9][0-9]\) \[ *[0-9]*s\]/Done XXXX-XX-XX XX:XX:XX (UTC offset: +XXXX) [ Xs]/;
$debughtml =~ s/Done 2[0-9][0-9][0-9]-[0-3][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \[ *[0-9]*s\]/Done XXXX-XX-XX XX:XX:XX [ Xs]/; $debughtml =~ s/Done 2[0-9][0-9][0-9]-[0-3][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(UTC offset: [+-][0-9][0-9][0-9][0-9]\) \[ *[0-9]*s\]/Done XXXX-XX-XX XX:XX:XX (UTC offset: +XXXX) [ Xs]/;
# Remove time difference from "HTTP clock skew" line # Remove time difference from "HTTP clock skew" line
$html =~ s/HTTP clock skew \+?-?[0-9]* /HTTP clock skew X /; $html =~ s/HTTP clock skew \+?-?[0-9]* /HTTP clock skew X /;
+2 -2
View File
@@ -24318,9 +24318,9 @@ datebanner() {
if [[ "$1" =~ Done ]] ; then if [[ "$1" =~ Done ]] ; then
scan_time_f="$(printf "%04ss" "$SCAN_TIME")" # 4 digits because of windows scan_time_f="$(printf "%04ss" "$SCAN_TIME")" # 4 digits because of windows
pr_reverse "$1 $(date +%F) $(date +%T) [$scan_time_f] -->> $node_banner <<--" pr_reverse "$1 $(date +%F) $(date +%T) (UTC offset: $(date "+%z")) [$scan_time_f] -->> $node_banner <<--"
else else
pr_reverse "$1 $(date +%F) $(date +%T) -->> $node_banner <<--" pr_reverse "$1 $(date +%F) $(date +%T) (UTC offset: $(date "+%z")) -->> $node_banner <<--"
fi fi
outln "\n" outln "\n"
[[ "$1" =~ Start ]] && display_rdns_etc [[ "$1" =~ Start ]] && display_rdns_etc