WordPress.org

Make WordPress Core

Ticket #3034: 3034.diff

File 3034.diff, 603 bytes (added by rob1n, 7 years ago)
  • wp-admin/import/livejournal.php

     
    4949 
    5050                        preg_match('|<eventtime>(.*?)</eventtime>|is', $post, $post_date); 
    5151                        $post_date = strtotime($post_date[1]); 
    52                         $post_date = gmdate('Y-m-d H:i:s', $post_date); 
     52                        $post_date = date('Y-m-d H:i:s', $post_date); 
    5353 
    5454                        preg_match('|<event>(.*?)</event>|is', $post, $post_content); 
    5555                        $post_content = str_replace(array ('<![CDATA[', ']]>'), '', trim($post_content[1]));