Changeset 686
- Timestamp:
- 05/05/06 18:49:26
- Files:
-
- trunk/plagger/lib/Plagger/Date.pm (modified) (1 diff)
- trunk/plagger/lib/Plagger/Plugin/CustomFeed/BloglinesCitations.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Date.pm
r556 r686 21 21 22 22 my $dt = $module->parse_datetime($date) or return; 23 if (my $context = Plagger->context) { 24 $dt->set_time_zone($context->conf->{timezone} || 'local'); 23 24 # If parsed datetime is floating, don't set timezone here. It should be "fixed" in caller plugins 25 unless ($dt->time_zone->is_floating) { 26 $dt->set_time_zone( Plagger->context->conf->{timezone} || 'local' ); 25 27 } 26 28 trunk/plagger/lib/Plagger/Plugin/CustomFeed/BloglinesCitations.pm
r522 r686 71 71 $data->{date} = Plagger::Date->strptime($date_format, $data->{date}); 72 72 73 # This is a bit tricky: Bloglines Citation page returns datetime as Pacific Time as default 74 # Fix it first to PST to figure out the UTC date, then switch to Plagger's preference 75 $data->{date}->set_time_zone('America/Los_Angeles'); 76 $data->{date}->set_time_zone(Plagger->context->conf->{timezone} || 'local'); 77 73 78 my $entry = Plagger::Entry->new; 74 79 $entry->title($data->{title});
