Changeset 616
- Timestamp:
- Jun 8, 2010, 9:37:06 AM (15 years ago)
- Location:
- trunk/xpressme_integration_kit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/class/xpressD3commentContent.class.php
r614 r616 45 45 { 46 46 global $xoops_config; 47 if ( function_exists('date_default_timezone_set') ) 48 date_default_timezone_set($xoops_config->xoops_time_zone); 47 49 $new_params = $this->restructParams( $params ) ; 48 50 if (!$this->canAddComment($params['id']) ) { … … 57 59 echo $d3comment; 58 60 } else { 59 if ( function_exists('date_default_timezone_set') )60 date_default_timezone_set($xoops_config->xoops_time_zone);61 61 d3forum_render_comments( $this->d3forum_dirname , $new_params['forum_id'] , $new_params , $this->smarty ) ; 62 if ( function_exists('date_default_timezone_set') )63 date_default_timezone_set('UTC');64 }62 } 63 if ( function_exists('date_default_timezone_set') ) 64 date_default_timezone_set('UTC'); 65 65 } 66 66 -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/d3forum_comment_synchro.php
r597 r616 459 459 } 460 460 $comment_author_IP = "'" . $d3f_row->poster_ip . "'"; 461 $comment_date = "'" . date('Y-m-d H:i:s' , $d3f_row->post_time) . "'"; 461 $gmt_offset = get_option('gmt_offset'); 462 $local_timestamp = $d3f_row->post_time + ($gmt_offset * 3600); 463 $comment_date = "'" . date('Y-m-d H:i:s' , $local_timestamp) . "'"; 462 464 $comment_content = "'" . addSlashes($d3f_row->post_text) . "'"; 463 465 $comment_approved = "'" . $d3f_row->approval . "'"; … … 543 545 544 546 $sql = "SELECT $wp_comments.comment_ID,$wp_comments.comment_post_ID, "; 545 $sql .= "$wp_comments.comment_author, $wp_comments.comment_author_email, $wp_comments.comment_date, ";547 $sql .= "$wp_comments.comment_author, $wp_comments.comment_author_email, $wp_comments.comment_date, $wp_comments.comment_date_gmt, "; 546 548 $sql .= "$wp_comments.comment_author_url, $wp_comments.comment_author_IP, "; 547 549 $sql .= "$wp_comments.comment_content, $wp_comments.comment_karma, "; … … 561 563 $topic_external_link_id = $row->comment_post_ID; //There is information on WP post_ID in topic_external_link_id of D3Forum 562 564 $topic_title = 'Re.' . addSlashes($row->post_title); 563 $post_time = strtotime($row->comment_date ); // or $row2['comment_date_gmt']564 $modified_time = strtotime($row->comment_date ); // or $row2['comment_date_gmt']565 $post_time = strtotime($row->comment_date_gmt); 566 $modified_time = strtotime($row->comment_date_gmt); 565 567 require_once (get_xpress_dir_path() . 'include/general_functions.php'); 566 568 if (empty($row->user_id)){
Note: See TracChangeset
for help on using the changeset viewer.