CodeIgniter Forums
Time Zone Array - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Time Zone Array (/showthread.php?tid=28944)



Time Zone Array - El Forum - 03-25-2010

[eluser]Unknown[/eluser]
You have displayed the Time zone Menu as like below,

http://ellislab.com/codeigniter/user-guide/helpers/date_helper.html

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!!

Thanks..



Time Zone Array - El Forum - 03-26-2010

[eluser]danmontgomery[/eluser]
This appears to be an error in the user guide... It should be:

Quote:...
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



Time Zone Array - El Forum - 03-26-2010

[eluser]Unknown[/eluser]
Thanks..