Error in Textpattern Import
-
Just found out that the way the system’s figuring Textpattern’s posted-date out is wrong. The substr() is using wrong values.
/wp-admin/import-textpattern.php line 89-98 should look like this:
$posted = $post['Posted'];
// 20030216162119
$year = substr($posted,0,4);
$month = substr($posted,5,2);
$day = substr($posted,8,2);
$hour = substr($posted,11,2);
$minute = substr($posted,14,2);
$second = substr($posted,15,2);
$timestamp = mktime($hour, $minute, $second, $month, $day, $year);
$posted = date('Y-m-d H:i:s', $timestamp);Who shall I sent this to?
- The topic ‘Error in Textpattern Import’ is closed to new replies.