Changeset 2025

Show
Ignore:
Timestamp:
03/24/08 20:56:14
Author:
charsbar
Message:

CustomFeed?::MixiScraper?: set_time_zone('Asia/Tokyo') explicitly (reported by false at http://www.wizard-limit.net/mt/pc/archives/003079.html)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/CustomFeed/MixiScraper.pm

    r1970 r2025  
    116116        $entry->author($msg->{name}); 
    117117        $entry->date( Plagger::Date->parse($format, $msg->{time}) ); 
     118        $entry->date->set_time_zone('Asia/Tokyo') if $entry->date; 
    118119 
    119120        if ($self->conf->{show_icon} && !$blocked && defined $MAP->{$type}->{icon}) { 
     
    172173 
    173174                $entry->date( Plagger::Date->parse($format, $item->{time}) ); 
     175                $entry->date->set_time_zone('Asia/Tokyo') if $entry->date; 
    174176                if ($self->conf->{fetch_comment}) { 
    175177                  for my $comment (@{ $item->{comments} || [] }) { 
     
    180182                         $c->author($comment->{name}); 
    181183                         $c->date( Plagger::Date->parse($format, $comment->{time}) ); 
     184                         $c->date->set_time_zone('Asia/Tokyo') if $c->date; 
    182185                      push @comments, $c; 
    183186                  }