CODE
} elsif ($key eq 'DATE') {
my $date = __PACKAGE__->_convert_date($val) or return;
$entry->authored_on($date);
my $date = __PACKAGE__->_convert_date($val) or return;
$entry->authored_on($date);
However, the code specifically loads the entry it's looking for based on created_on, not authored_on:
CODE
my $ts = $entry->created_on;
$entry = MT::Entry->load({ created_on => $ts,
blog_id => $blog_id });
$entry = MT::Entry->load({ created_on => $ts,
blog_id => $blog_id });
How could this ever work? It certainly doesn't for me (4.23-en), because it rightfully complains for every entry that it couldn't find any entry with timestamp '' -- since created_on is not set for a newly allocated entry.
Wondering, John