XPressME Integration Kit

Trac

Changeset 614


Ignore:
Timestamp:
Jun 7, 2010, 9:23:22 PM (14 years ago)
Author:
toemon
Message:

D3Forum コメント統合時の日付がUTCになってしまうバグ修正 Fixes#349 (thx bichico)

Location:
trunk/xpressme_integration_kit/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/class/config_from_xoops.class.php

    r583 r614  
    4343        var $module_id; 
    4444        var $module_config= array(); 
     45        var $xoops_time_zone; 
    4546         
    4647        function __constructor()        //for PHP5 
     
    9798                $this->set_module_version(); 
    9899                $this->set_wp_version(); 
     100                if (function_exists('date_default_timezone_get')){ 
     101                        $this->xoops_time_zone = date_default_timezone_get(); 
     102                } 
    99103    } 
    100104 
  • trunk/xpressme_integration_kit/class/xpressD3commentContent.class.php

    r596 r614  
    4444                function displayCommentsInline( $params ) 
    4545                { 
     46                        global $xoops_config; 
    4647                        $new_params = $this->restructParams( $params ) ; 
    4748                        if (!$this->canAddComment($params['id']) ) { 
     
    5657                                echo $d3comment; 
    5758                        } else { 
     59                                if ( function_exists('date_default_timezone_set') ) 
     60                                date_default_timezone_set($xoops_config->xoops_time_zone); 
    5861                                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'); 
    5964                        } 
    6065                } 
Note: See TracChangeset for help on using the changeset viewer.