DateTimeZone::listIdentifiers headache


Posted on 16th Feb 2014 07:03 pm by admin

http://php.net/manual/en/datetimezone.listidentifiers.php


So the documentation states that one can get locales by using the above mentioned function. However what I am trying to do is get country specific data.

I am using:

Code: $timezone_identifiers = DateTimeZone::listIdentifiers(4096,"CN");
print_r($timezone_identifiers);


and I still get the whole list!. All I want is the locales per country, in this case china.

What am I doing wrong?

No comments posted yet

Your Answer:

Login to answer
233 Like 36 Dislike
Previous forums Next forums
Other forums

Can you help please? Php file
I have to write this php file to allow users to register their nicknames on nickserv

For an I

php/mysql problem
Hey all,

Problem: im trying to setup a shop where people can use a drop-down list to select t

Warehouse Management
Hi,

On our system, we have two storage locations ( A and B ) where A is the main factory

Last character removed
I have created a string from an array. I have inserted commas from my form values. I am trying to re

cURL error
So here is my code... I got it off of here... http://www.youtube.com/watch?v=XcgQUsorF_8
Because

Multiple websites question.
Hi, does php have any functionality that enables a programmer to extract information from a website

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

Show specific day of the week
I have been racking my brain trying to get this function to work properly and it is doing so for eve

Display thumbnails as square while retaining aspect ratio
I am trying to figure out a way to make an image display as a square, for example 80x80 pixels, when

rdns with php
I am trying to build a script that will show all of the different domains that are hosted on the sam

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash