Changeset 869

Show
Ignore:
Timestamp:
05/30/06 19:25:02
Author:
miyagawa
Message:

RSSLiberalDateTime: fix bug around minus timezone

Files:

Legend:

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

    r362 r869  
    3939    if ($time[6]) { 
    4040        use integer; 
    41         my $tz = sprintf "%s%02d%02d", ($time[6] > 0 ? "+" : "-"), $time[6] / 3600, $time[6] % 3600; 
     41        my $tz = sprintf "%s%02d%02d", ($time[6] > 0 ? "+" : "-"), abs($time[6] / 3600), $time[6] % 3600; 
    4242        $dt->set_time_zone($tz); 
    4343    }