I am getting a problem while i am trying to access the timezone of a bigcommerce store using the getTime() function of bigcommerce api:
$time=Bigcommerce::getTime();
print_r($time);
it always returning me following output:
Array ( [date] => 2013-08-17 12:15:55 [timezone_type] => 1 [timezone] => +00:00 )
but i have set following timezone at my bigcommerce store:
Mountain Time (US & Canada) (GMT -7:00)
Can somebody please tell me if there is any way to get the right timezone of the store.....
There is no way to currently retrieve the store's default timezone setting via the API. Ideally, it should be part of the store endpoint...What are you trying to do?
The time resource by itself returns the epochseconds. It is mostly intended as a health check for the store.
{
"time": 1378757860
}