Welcome Guest, Not a member yet? Register   Sign In
Time Zone Array

You have displayed the Time zone Menu as like below,


Here the India Zone Value as "UP45"
<option value="UP45">(UTC + 5:30) Bombay, Calcutta, Madras, New Delhi</option>

With this reference i've taken..

But when i've given the code like this &lt;?php echo timezone_menu('UP45');?&gt;

I've got the result as Afganisation instead of India Value..
<option value="UP45">(UTC +4:30) Afghanistan</option>

How its possible..?

Please Reply Me!!


This appears to be an error in the user guide... It should be:

UP3 (UTC + 3:00) Baghdad, Riyadh, Moscow, Nairobi
UP35 (UTC + 3:30) Tehran
UP4 (UTC + 4:00) Adu Dhabi, Baku, Muscat, Tbilisi
UP45 (UTC + 4:30) Kabul
UP5 (UTC + 5:00) Islamabad, Karachi, Tashkent
UP55 (UTC + 5:30) Bombay, Calcutta, Madras, New Delhi
UP6 (UTC + 6:00) Almaty, Colomba, Dhaka
UP7 (UTC + 7:00) Bangkok, Hanoi, Jakarta
UP8 (UTC + 8:00) Beijing, Hong Kong, Perth, Singapore, Taipei
UP9 (UTC + 9:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk
UP95 (UTC + 9:30) Adelaide, Darwin
UP10 (UTC + 10:00) Melbourne, Papua New Guinea, Sydney, Vladivostok
UP11 (UTC + 11:00) Magadan, New Caledonia, Solomon Islands
UP12 (UTC + 12:00) Auckland, Wellington, Fiji, Marshall Island

The code also supports a few more timezones which aren't in the user guide:

Quote:UP575 (UTC + 5:45) Kathmandu
UP875 (UTC + 8:45) Australian Central Western Time
UP1275 (UTC + 12:45) Chatham Islands
UP13 (UTC + 13:00) Nuku'alofa
UP14 (UTC + 14:00) Kiritimati


Theme © iAndrew 2016 - Forum software by © MyBB