PHPology.co.uk Collective of freelance web developers and designers

  • General timezone list for MYSQL

    Today I had to create short list of timezones for a project I was working on and basically created a list that I used within a MYSQL database, which I hope saves someone else the hassle. Once in database, it can be used in selectlists using PHP, etc.

    INSERT INTO `tbl_timezone` (`int_timezone_id`, `var_description`, `int_shift`) VALUES
    (1, '(GMT -12:00) Eniwetok, Kwajalein', '-12.00'),
    (2, '(GMT -11:00) Midway Island, Samoa', '-11.00'),
    (3, '(GMT -10:00) Hawaii', '-10.00'),
    (4, '(GMT -9:00) Alaska', '-9.00'),
    (5, '(GMT -8:00) Pacific Time (US & Canada)', '-8.00'),
    (6, '(GMT -7:00) Mountain Time (US & Canada)', '-7.00'),
    (7, '(GMT -6:00) Central Time (US & Canada), Mexico City', '-6.00'),
    (8, '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima', '-5.00'),
    (9, '(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz', '-4.00'),
    (10, '(GMT -3:30) Newfoundland', '-3.50'),
    (11, '(GMT -3:00) Brazil, Buenos Aires, Georgetown', '-3.00'),
    (12, '(GMT -2:00) Mid-Atlantic', '-2.00'),
    (13, '(GMT -1:00 hour) Azores, Cape Verde Islands', '-1.00'),
    (14, '(GMT) Western Europe Time, London, Lisbon, Casablanca', '0.00'),
    (15, '(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris', '1.00'),
    (16, '(GMT +2:00) Kaliningrad, South Africa', '2.00'),
    (17, '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg', '3.00'),
    (18, '(GMT +3:30) Tehran', '3.50'),
    (19, '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi', '4.00'),
    (20, '(GMT +4:30) Kabul', '4.50'),
    (21, '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent', '5.00'),
    (22, '(GMT +5:30) Bombay, Calcutta, Madras, New Delhi', '5.50'),
    (23, '(GMT +5:45) Kathmandu', '5.75'),
    (24, '(GMT +6:00) Almaty, Dhaka, Colombo', '6.00'),
    (25, '(GMT +7:00) Bangkok, Hanoi, Jakarta', '7.00'),
    (26, '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong', '8.00'),
    (27, '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk', '9.00'),
    (28, '(GMT +9:30) Adelaide, Darwin', '9.50'),
    (29, '(GMT +10:00) Eastern Australia, Guam, Vladivostok', '10.00'),
    (30, '(GMT +11:00) Magadan, Solomon Islands, New Caledonia', '11.00'),
    (31, '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka', '12.00');

     

  • Comments

    0 comment(s)

    Be the first to comment!

    Add your comment
    Name*:
    Email*:
    Website URL (including full path e.g. http://www.yourwebsite.com/):
    Comment* (html/script tags will be removed):
    What do you see below?: