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 ); |
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}++; |