diff options
author | Peter Palfrader <peter@palfrader.org> | 2003-03-02 19:44:50 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2003-03-02 19:44:50 +0000 |
commit | bd41d830d9bf16bffd27c0d809cde8dc065d4dcc (patch) | |
tree | 2be7ad2f5dd609a3b7f9c46dbcaaee83625fbd61 /Echolot | |
parent | 5f8f7c06c3cb058f4bb0ba08ed530a5de949f5ec (diff) |
Show date of laste update
Diffstat (limited to 'Echolot')
-rw-r--r-- | Echolot/Fromlines.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Echolot/Fromlines.pm b/Echolot/Fromlines.pm index e43389e..a0c7bbf 100644 --- a/Echolot/Fromlines.pm +++ b/Echolot/Fromlines.pm @@ -1,7 +1,7 @@ package Echolot::Fromlines; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: Fromlines.pm,v 1.5 2003/02/25 19:59:01 weasel Exp $ +# $Id: Fromlines.pm,v 1.6 2003/03/02 19:44:50 weasel Exp $ # =pod @@ -50,8 +50,12 @@ sub build_fromlines() { $from = 'Middleman Remailer' if $middleman; my $disclaim_top = $from_info->{'disclaim_top'} && ! $middleman ? 1 : 0; my $disclaim_bot = $from_info->{'disclaim_bot'} && ! $middleman ? 1 : 0; + my $last_update = $from_info->{'last_update'}; + my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime($last_update); my $frominfo = $disclaim_top.':'.$disclaim_bot.':'.$from; - push @{$from_types->{$frominfo}}, $type; + my $date = sprintf("%04d-%02d-%02d", $year+1900, $mon+1, $mday); + my $value = $type." ($date)"; + push @{$from_types->{$frominfo}}, $value; }; my $types_from; for my $frominfo (sort keys %$from_types) { |