Ticket #12885: 12885.diff
File 12885.diff, 1.1 KB (added by , 14 years ago) |
---|
-
livejournal-importer.php
384 384 if ( 18 == strlen( $post_date ) ) 385 385 $post_date = substr( $post_date, 0, 10 ) . ' ' . substr( $post_date, 10 ); 386 386 387 // Adjust date from GMT to local time 388 $post_date = get_date_from_gmt( $post_date ); 389 387 390 // Cleaning up and linking the title 388 391 $post_title = isset( $post['subject'] ) ? trim( $post['subject'] ) : ''; 389 392 $post_title = $this->translate_lj_user( $post_title ); // Translate it, but then we'll strip the link … … 631 634 preg_match( '|<date>(.*)</date>|i', $comment, $matches ); 632 635 $comment_date = trim( str_replace( array( 'T', 'Z' ), ' ', $matches[1] ) ); 633 636 637 // Adjust date from GMT to local time 638 $comment_date = get_date_from_gmt( $comment_date ); 639 634 640 // Grab IP if available 635 641 preg_match( '|<property name=\'poster_ip\'>(.*)</property>|i', $comment, $matches ); // optional 636 642 $comment_author_IP = isset( $matches[1] ) ? $matches[1] : '';