/[Grep]/lib/Grep/Import/ScrapBook.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Grep/Import/ScrapBook.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 176 by dpavlin, Wed Jul 4 09:58:06 2007 UTC revision 177 by dpavlin, Sat Aug 11 17:41:42 2007 UTC
# Line 130  sub import { Line 130  sub import {
130                                  #time_zone => 'UTC',                                  #time_zone => 'UTC',
131                          );                          );
132                  } else {                  } else {
133                          warn "can't parse date from ", $hash->{id};                          die "can't parse date from ", $hash->{id};
134                  }                  }
135    
136                  my $i = Grep::Model::Item->new( current_user => $owner );                  my $i = Grep::Model::Item->new( current_user => $owner );
# Line 139  sub import { Line 139  sub import {
139                          title => $hash->{title},                          title => $hash->{title},
140                          link => $hash->{source},                          link => $hash->{source},
141                          content => $content,                          content => $content,
142                          created_on => $hash->{id},  #                       created_on => $dt,
143                  );                  );
144    
145                    $i->set_created_on( $dt );
146    
147                  if ( ! $ok ) {                  if ( ! $ok ) {
148                          Jifty->log->error( $msg );                          Jifty->log->error( $msg );
149                          $stats->{failure}++;                          $stats->{failure}++;

Legend:
Removed from v.176  
changed lines
  Added in v.177

  ViewVC Help
Powered by ViewVC 1.1.26