Changeset 1750

Show
Ignore:
Timestamp:
10/15/06 00:09:31
Author:
miyagawa
Message:

GuessTimeZoneByDomain?: use permalink. More debug log

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/GuessTimeZoneByDomain.pm

    r1747 r1750  
    4040    return unless $args->{entry}->date && $args->{entry}->date->time_zone->is_floating; 
    4141 
    42     my $uri = URI->new($args->{entry}->link); 
     42    my $uri = URI->new($args->{entry}->permalink); 
    4343    $uri->can('host') or return; 
    4444 
     
    6767    my $tz = first { defined } @cand; 
    6868    if ($tz) { 
    69         $context->log(info => "Use timezone $tz"); 
     69        $context->log(info => "Use timezone $tz for $uri"); 
    7070        $args->{entry}->date->set_time_zone($tz); 
    7171    }