Merge pull request #4150 from kloon/fix_api_timezone_fatal_error

Fix api timezone fatal error
This commit is contained in:
Mike Jolley 2013-11-20 06:32:39 -08:00
commit 65c465f451
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ class WC_API_Server {
'URL' => get_option( 'siteurl' ), 'URL' => get_option( 'siteurl' ),
'routes' => array(), 'routes' => array(),
'meta' => array( 'meta' => array(
'timezone' => $this->get_timezone(), 'timezone' => woocommerce_timezone_string(),
'currency' => get_woocommerce_currency(), 'currency' => get_woocommerce_currency(),
'money_format' => get_woocommerce_currency_symbol(), 'money_format' => get_woocommerce_currency_symbol(),
'tax_included' => ( 'yes' === get_option( 'woocommerce_prices_include_tax' ) ), 'tax_included' => ( 'yes' === get_option( 'woocommerce_prices_include_tax' ) ),