Title: Error in Textpattern Import
Last modified: August 18, 2016

---

# Error in Textpattern Import

 *  [holst](https://wordpress.org/support/users/holst/)
 * (@holst)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/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.

## Tags

 * [TextPattern](https://wordpress.org/support/topic-tag/textpattern/)

 * 0 replies
 * 1 participant
 * Last reply from: [holst](https://wordpress.org/support/users/holst/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/error-in-textpattern-import/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
