XPressME Integration Kit

Trac

Changeset 617


Ignore:
Timestamp:
Jun 8, 2010, 3:25:48 PM (14 years ago)
Author:
toemon
Message:

インストール時、XOOPSのデフォルトタイムゾーンとWordPressのタイムゾーンとして設定する。 Fixes#352

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/oninstall.php

    r590 r617  
    192192         
    193193        // Rewrite Option for Xpress 
     194        $xoops_config_tbl = XOOPS_DB_PREFIX . '_config' ; 
     195        $sql = "SELECT conf_value FROM  $xoops_config_tbl WHERE `conf_name` = 'default_TZ'"; 
     196        $xoops_default_TZ = $wpdb->get_var($sql); 
     197        update_option('gmt_offset', $xoops_default_TZ);  
     198 
    194199        if (WPLANG == 'ja_EUC') { 
    195200                $setup_charset = 'EUC-JP'; 
Note: See TracChangeset for help on using the changeset viewer.