I'm Trying to find Timezone for a Country by Using Below Code.
// FIND TIMEZONE CODE FROM COUNTRY CODE HERE
// COUNTRY CODE SHOULD BE IN ISO2 FORMAT
$country_code = 'GR';
$arr_new_timezone = DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, $country_code);
Code is working absolutely fine on My local server (WAMP) but not on Live Server.
What is wrong with this? Couldn't find out much solution about this issue.
Let me know What I can do to over come with this.
Thanks in Advance.