1<?php 2function get_time_zone($country, $region) 3{ 4 switch ($country) { 5 case "AD": 6 $timezone = "Europe/Andorra"; 7 break; 8 case "AE": 9 $timezone = "Asia/Dubai"; 10 break; 11 case "AF": 12 $timezone = "Asia/Kabul"; 13 break; 14 case "AG": 15 $timezone = "America/Antigua"; 16 break; 17 case "AI": 18 $timezone = "America/Anguilla"; 19 break; 20 case "AL": 21 $timezone = "Europe/Tirane"; 22 break; 23 case "AM": 24 $timezone = "Asia/Yerevan"; 25 break; 26 case "AN": 27 $timezone = "America/Curacao"; 28 break; 29 case "AO": 30 $timezone = "Africa/Luanda"; 31 break; 32 case "AQ": 33 $timezone = "Antarctica/South_Pole"; 34 break; 35 case "AR": 36 switch ($region) { 37 case "01": 38 $timezone = "America/Argentina/Buenos_Aires"; 39 break; 40 case "02": 41 $timezone = "America/Argentina/Catamarca"; 42 break; 43 case "03": 44 $timezone = "America/Argentina/Tucuman"; 45 break; 46 case "04": 47 $timezone = "America/Argentina/Rio_Gallegos"; 48 break; 49 case "05": 50 $timezone = "America/Argentina/Cordoba"; 51 break; 52 case "06": 53 $timezone = "America/Argentina/Tucuman"; 54 break; 55 case "07": 56 $timezone = "America/Argentina/Buenos_Aires"; 57 break; 58 case "08": 59 $timezone = "America/Argentina/Buenos_Aires"; 60 break; 61 case "09": 62 $timezone = "America/Argentina/Tucuman"; 63 break; 64 case "10": 65 $timezone = "America/Argentina/Jujuy"; 66 break; 67 case "11": 68 $timezone = "America/Argentina/San_Luis"; 69 break; 70 case "12": 71 $timezone = "America/Argentina/La_Rioja"; 72 break; 73 case "13": 74 $timezone = "America/Argentina/Mendoza"; 75 break; 76 case "14": 77 $timezone = "America/Argentina/Buenos_Aires"; 78 break; 79 case "15": 80 $timezone = "America/Argentina/San_Luis"; 81 break; 82 case "16": 83 $timezone = "America/Argentina/Buenos_Aires"; 84 break; 85 case "17": 86 $timezone = "America/Argentina/Salta"; 87 break; 88 case "18": 89 $timezone = "America/Argentina/San_Juan"; 90 break; 91 case "19": 92 $timezone = "America/Argentina/San_Luis"; 93 break; 94 case "20": 95 $timezone = "America/Argentina/Rio_Gallegos"; 96 break; 97 case "21": 98 $timezone = "America/Argentina/Buenos_Aires"; 99 break; 100 case "22": 101 $timezone = "America/Argentina/Catamarca"; 102 break; 103 case "23": 104 $timezone = "America/Argentina/Ushuaia"; 105 break; 106 case "24": 107 $timezone = "America/Argentina/Tucuman"; 108 break; 109 } 110 break; 111 case "AS": 112 $timezone = "Pacific/Pago_Pago"; 113 break; 114 case "AT": 115 $timezone = "Europe/Vienna"; 116 break; 117 case "AU": 118 switch ($region) { 119 case "01": 120 $timezone = "Australia/Sydney"; 121 break; 122 case "02": 123 $timezone = "Australia/Sydney"; 124 break; 125 case "03": 126 $timezone = "Australia/Darwin"; 127 break; 128 case "04": 129 $timezone = "Australia/Brisbane"; 130 break; 131 case "05": 132 $timezone = "Australia/Adelaide"; 133 break; 134 case "06": 135 $timezone = "Australia/Hobart"; 136 break; 137 case "07": 138 $timezone = "Australia/Melbourne"; 139 break; 140 case "08": 141 $timezone = "Australia/Perth"; 142 break; 143 } 144 break; 145 case "AW": 146 $timezone = "America/Aruba"; 147 break; 148 case "AX": 149 $timezone = "Europe/Mariehamn"; 150 break; 151 case "AZ": 152 $timezone = "Asia/Baku"; 153 break; 154 case "BA": 155 $timezone = "Europe/Sarajevo"; 156 break; 157 case "BB": 158 $timezone = "America/Barbados"; 159 break; 160 case "BD": 161 $timezone = "Asia/Dhaka"; 162 break; 163 case "BE": 164 $timezone = "Europe/Brussels"; 165 break; 166 case "BF": 167 $timezone = "Africa/Ouagadougou"; 168 break; 169 case "BG": 170 $timezone = "Europe/Sofia"; 171 break; 172 case "BH": 173 $timezone = "Asia/Bahrain"; 174 break; 175 case "BI": 176 $timezone = "Africa/Bujumbura"; 177 break; 178 case "BJ": 179 $timezone = "Africa/Porto-Novo"; 180 break; 181 case "BL": 182 $timezone = "America/St_Barthelemy"; 183 break; 184 case "BM": 185 $timezone = "Atlantic/Bermuda"; 186 break; 187 case "BN": 188 $timezone = "Asia/Brunei"; 189 break; 190 case "BO": 191 $timezone = "America/La_Paz"; 192 break; 193 case "BQ": 194 $timezone = "America/Curacao"; 195 break; 196 case "BR": 197 switch ($region) { 198 case "01": 199 $timezone = "America/Rio_Branco"; 200 break; 201 case "02": 202 $timezone = "America/Maceio"; 203 break; 204 case "03": 205 $timezone = "America/Sao_Paulo"; 206 break; 207 case "04": 208 $timezone = "America/Manaus"; 209 break; 210 case "05": 211 $timezone = "America/Bahia"; 212 break; 213 case "06": 214 $timezone = "America/Fortaleza"; 215 break; 216 case "07": 217 $timezone = "America/Sao_Paulo"; 218 break; 219 case "08": 220 $timezone = "America/Sao_Paulo"; 221 break; 222 case "11": 223 $timezone = "America/Campo_Grande"; 224 break; 225 case "13": 226 $timezone = "America/Belem"; 227 break; 228 case "14": 229 $timezone = "America/Cuiaba"; 230 break; 231 case "15": 232 $timezone = "America/Sao_Paulo"; 233 break; 234 case "16": 235 $timezone = "America/Belem"; 236 break; 237 case "17": 238 $timezone = "America/Recife"; 239 break; 240 case "18": 241 $timezone = "America/Sao_Paulo"; 242 break; 243 case "20": 244 $timezone = "America/Fortaleza"; 245 break; 246 case "21": 247 $timezone = "America/Sao_Paulo"; 248 break; 249 case "22": 250 $timezone = "America/Recife"; 251 break; 252 case "23": 253 $timezone = "America/Sao_Paulo"; 254 break; 255 case "24": 256 $timezone = "America/Porto_Velho"; 257 break; 258 case "25": 259 $timezone = "America/Boa_Vista"; 260 break; 261 case "26": 262 $timezone = "America/Sao_Paulo"; 263 break; 264 case "27": 265 $timezone = "America/Sao_Paulo"; 266 break; 267 case "28": 268 $timezone = "America/Maceio"; 269 break; 270 case "29": 271 $timezone = "America/Sao_Paulo"; 272 break; 273 case "30": 274 $timezone = "America/Recife"; 275 break; 276 case "31": 277 $timezone = "America/Araguaina"; 278 break; 279 } 280 break; 281 case "BS": 282 $timezone = "America/Nassau"; 283 break; 284 case "BT": 285 $timezone = "Asia/Thimphu"; 286 break; 287 case "BV": 288 $timezone = "Antarctica/Syowa"; 289 break; 290 case "BW": 291 $timezone = "Africa/Gaborone"; 292 break; 293 case "BY": 294 $timezone = "Europe/Minsk"; 295 break; 296 case "BZ": 297 $timezone = "America/Belize"; 298 break; 299 case "CA": 300 switch ($region) { 301 case "AB": 302 $timezone = "America/Edmonton"; 303 break; 304 case "BC": 305 $timezone = "America/Vancouver"; 306 break; 307 case "MB": 308 $timezone = "America/Winnipeg"; 309 break; 310 case "NB": 311 $timezone = "America/Halifax"; 312 break; 313 case "NL": 314 $timezone = "America/St_Johns"; 315 break; 316 case "NS": 317 $timezone = "America/Halifax"; 318 break; 319 case "NT": 320 $timezone = "America/Yellowknife"; 321 break; 322 case "NU": 323 $timezone = "America/Rankin_Inlet"; 324 break; 325 case "ON": 326 $timezone = "America/Toronto"; 327 break; 328 case "PE": 329 $timezone = "America/Halifax"; 330 break; 331 case "QC": 332 $timezone = "America/Montreal"; 333 break; 334 case "SK": 335 $timezone = "America/Regina"; 336 break; 337 case "YT": 338 $timezone = "America/Whitehorse"; 339 break; 340 } 341 break; 342 case "CC": 343 $timezone = "Indian/Cocos"; 344 break; 345 case "CD": 346 switch ($region) { 347 case "01": 348 $timezone = "Africa/Kinshasa"; 349 break; 350 case "02": 351 $timezone = "Africa/Kinshasa"; 352 break; 353 case "03": 354 $timezone = "Africa/Kinshasa"; 355 break; 356 case "04": 357 $timezone = "Africa/Lubumbashi"; 358 break; 359 case "05": 360 $timezone = "Africa/Lubumbashi"; 361 break; 362 case "06": 363 $timezone = "Africa/Kinshasa"; 364 break; 365 case "07": 366 $timezone = "Africa/Lubumbashi"; 367 break; 368 case "08": 369 $timezone = "Africa/Kinshasa"; 370 break; 371 case "09": 372 $timezone = "Africa/Lubumbashi"; 373 break; 374 case "10": 375 $timezone = "Africa/Lubumbashi"; 376 break; 377 case "11": 378 $timezone = "Africa/Lubumbashi"; 379 break; 380 case "12": 381 $timezone = "Africa/Lubumbashi"; 382 break; 383 } 384 break; 385 case "CF": 386 $timezone = "Africa/Bangui"; 387 break; 388 case "CG": 389 $timezone = "Africa/Brazzaville"; 390 break; 391 case "CH": 392 $timezone = "Europe/Zurich"; 393 break; 394 case "CI": 395 $timezone = "Africa/Abidjan"; 396 break; 397 case "CK": 398 $timezone = "Pacific/Rarotonga"; 399 break; 400 case "CL": 401 $timezone = "America/Santiago"; 402 break; 403 case "CM": 404 $timezone = "Africa/Lagos"; 405 break; 406 case "CN": 407 switch ($region) { 408 case "01": 409 $timezone = "Asia/Shanghai"; 410 break; 411 case "02": 412 $timezone = "Asia/Shanghai"; 413 break; 414 case "03": 415 $timezone = "Asia/Shanghai"; 416 break; 417 case "04": 418 $timezone = "Asia/Shanghai"; 419 break; 420 case "05": 421 $timezone = "Asia/Harbin"; 422 break; 423 case "06": 424 $timezone = "Asia/Chongqing"; 425 break; 426 case "07": 427 $timezone = "Asia/Shanghai"; 428 break; 429 case "08": 430 $timezone = "Asia/Harbin"; 431 break; 432 case "09": 433 $timezone = "Asia/Shanghai"; 434 break; 435 case "10": 436 $timezone = "Asia/Shanghai"; 437 break; 438 case "11": 439 $timezone = "Asia/Chongqing"; 440 break; 441 case "12": 442 $timezone = "Asia/Shanghai"; 443 break; 444 case "13": 445 $timezone = "Asia/Urumqi"; 446 break; 447 case "14": 448 $timezone = "Asia/Chongqing"; 449 break; 450 case "15": 451 $timezone = "Asia/Chongqing"; 452 break; 453 case "16": 454 $timezone = "Asia/Chongqing"; 455 break; 456 case "18": 457 $timezone = "Asia/Chongqing"; 458 break; 459 case "19": 460 $timezone = "Asia/Harbin"; 461 break; 462 case "20": 463 $timezone = "Asia/Harbin"; 464 break; 465 case "21": 466 $timezone = "Asia/Chongqing"; 467 break; 468 case "22": 469 $timezone = "Asia/Harbin"; 470 break; 471 case "23": 472 $timezone = "Asia/Shanghai"; 473 break; 474 case "24": 475 $timezone = "Asia/Chongqing"; 476 break; 477 case "25": 478 $timezone = "Asia/Shanghai"; 479 break; 480 case "26": 481 $timezone = "Asia/Chongqing"; 482 break; 483 case "28": 484 $timezone = "Asia/Shanghai"; 485 break; 486 case "29": 487 $timezone = "Asia/Chongqing"; 488 break; 489 case "30": 490 $timezone = "Asia/Chongqing"; 491 break; 492 case "31": 493 $timezone = "Asia/Chongqing"; 494 break; 495 case "32": 496 $timezone = "Asia/Chongqing"; 497 break; 498 case "33": 499 $timezone = "Asia/Chongqing"; 500 break; 501 } 502 break; 503 case "CO": 504 $timezone = "America/Bogota"; 505 break; 506 case "CR": 507 $timezone = "America/Costa_Rica"; 508 break; 509 case "CU": 510 $timezone = "America/Havana"; 511 break; 512 case "CV": 513 $timezone = "Atlantic/Cape_Verde"; 514 break; 515 case "CW": 516 $timezone = "America/Curacao"; 517 break; 518 case "CX": 519 $timezone = "Indian/Christmas"; 520 break; 521 case "CY": 522 $timezone = "Asia/Nicosia"; 523 break; 524 case "CZ": 525 $timezone = "Europe/Prague"; 526 break; 527 case "DE": 528 $timezone = "Europe/Berlin"; 529 break; 530 case "DJ": 531 $timezone = "Africa/Djibouti"; 532 break; 533 case "DK": 534 $timezone = "Europe/Copenhagen"; 535 break; 536 case "DM": 537 $timezone = "America/Dominica"; 538 break; 539 case "DO": 540 $timezone = "America/Santo_Domingo"; 541 break; 542 case "DZ": 543 $timezone = "Africa/Algiers"; 544 break; 545 case "EC": 546 switch ($region) { 547 case "01": 548 $timezone = "Pacific/Galapagos"; 549 break; 550 case "02": 551 $timezone = "America/Guayaquil"; 552 break; 553 case "03": 554 $timezone = "America/Guayaquil"; 555 break; 556 case "04": 557 $timezone = "America/Guayaquil"; 558 break; 559 case "05": 560 $timezone = "America/Guayaquil"; 561 break; 562 case "06": 563 $timezone = "America/Guayaquil"; 564 break; 565 case "07": 566 $timezone = "America/Guayaquil"; 567 break; 568 case "08": 569 $timezone = "America/Guayaquil"; 570 break; 571 case "09": 572 $timezone = "America/Guayaquil"; 573 break; 574 case "10": 575 $timezone = "America/Guayaquil"; 576 break; 577 case "11": 578 $timezone = "America/Guayaquil"; 579 break; 580 case "12": 581 $timezone = "America/Guayaquil"; 582 break; 583 case "13": 584 $timezone = "America/Guayaquil"; 585 break; 586 case "14": 587 $timezone = "America/Guayaquil"; 588 break; 589 case "15": 590 $timezone = "America/Guayaquil"; 591 break; 592 case "17": 593 $timezone = "America/Guayaquil"; 594 break; 595 case "18": 596 $timezone = "America/Guayaquil"; 597 break; 598 case "19": 599 $timezone = "America/Guayaquil"; 600 break; 601 case "20": 602 $timezone = "America/Guayaquil"; 603 break; 604 case "22": 605 $timezone = "America/Guayaquil"; 606 break; 607 case "24": 608 $timezone = "America/Guayaquil"; 609 break; 610 } 611 break; 612 case "EE": 613 $timezone = "Europe/Tallinn"; 614 break; 615 case "EG": 616 $timezone = "Africa/Cairo"; 617 break; 618 case "EH": 619 $timezone = "Africa/El_Aaiun"; 620 break; 621 case "ER": 622 $timezone = "Africa/Asmara"; 623 break; 624 case "ES": 625 switch ($region) { 626 case "07": 627 $timezone = "Europe/Madrid"; 628 break; 629 case "27": 630 $timezone = "Europe/Madrid"; 631 break; 632 case "29": 633 $timezone = "Europe/Madrid"; 634 break; 635 case "31": 636 $timezone = "Europe/Madrid"; 637 break; 638 case "32": 639 $timezone = "Europe/Madrid"; 640 break; 641 case "34": 642 $timezone = "Europe/Madrid"; 643 break; 644 case "39": 645 $timezone = "Europe/Madrid"; 646 break; 647 case "51": 648 $timezone = "Africa/Ceuta"; 649 break; 650 case "52": 651 $timezone = "Europe/Madrid"; 652 break; 653 case "53": 654 $timezone = "Atlantic/Canary"; 655 break; 656 case "54": 657 $timezone = "Europe/Madrid"; 658 break; 659 case "55": 660 $timezone = "Europe/Madrid"; 661 break; 662 case "56": 663 $timezone = "Europe/Madrid"; 664 break; 665 case "57": 666 $timezone = "Europe/Madrid"; 667 break; 668 case "58": 669 $timezone = "Europe/Madrid"; 670 break; 671 case "59": 672 $timezone = "Europe/Madrid"; 673 break; 674 case "60": 675 $timezone = "Europe/Madrid"; 676 break; 677 } 678 break; 679 case "ET": 680 $timezone = "Africa/Addis_Ababa"; 681 break; 682 case "FI": 683 $timezone = "Europe/Helsinki"; 684 break; 685 case "FJ": 686 $timezone = "Pacific/Fiji"; 687 break; 688 case "FK": 689 $timezone = "Atlantic/Stanley"; 690 break; 691 case "FM": 692 $timezone = "Pacific/Pohnpei"; 693 break; 694 case "FO": 695 $timezone = "Atlantic/Faroe"; 696 break; 697 case "FR": 698 $timezone = "Europe/Paris"; 699 break; 700 case "FX": 701 $timezone = "Europe/Paris"; 702 break; 703 case "GA": 704 $timezone = "Africa/Libreville"; 705 break; 706 case "GB": 707 $timezone = "Europe/London"; 708 break; 709 case "GD": 710 $timezone = "America/Grenada"; 711 break; 712 case "GE": 713 $timezone = "Asia/Tbilisi"; 714 break; 715 case "GF": 716 $timezone = "America/Cayenne"; 717 break; 718 case "GG": 719 $timezone = "Europe/Guernsey"; 720 break; 721 case "GH": 722 $timezone = "Africa/Accra"; 723 break; 724 case "GI": 725 $timezone = "Europe/Gibraltar"; 726 break; 727 case "GL": 728 switch ($region) { 729 case "01": 730 $timezone = "America/Thule"; 731 break; 732 case "02": 733 $timezone = "America/Godthab"; 734 break; 735 case "03": 736 $timezone = "America/Godthab"; 737 break; 738 } 739 break; 740 case "GM": 741 $timezone = "Africa/Banjul"; 742 break; 743 case "GN": 744 $timezone = "Africa/Conakry"; 745 break; 746 case "GP": 747 $timezone = "America/Guadeloupe"; 748 break; 749 case "GQ": 750 $timezone = "Africa/Malabo"; 751 break; 752 case "GR": 753 $timezone = "Europe/Athens"; 754 break; 755 case "GS": 756 $timezone = "Atlantic/South_Georgia"; 757 break; 758 case "GT": 759 $timezone = "America/Guatemala"; 760 break; 761 case "GU": 762 $timezone = "Pacific/Guam"; 763 break; 764 case "GW": 765 $timezone = "Africa/Bissau"; 766 break; 767 case "GY": 768 $timezone = "America/Guyana"; 769 break; 770 case "HK": 771 $timezone = "Asia/Hong_Kong"; 772 break; 773 case "HN": 774 $timezone = "America/Tegucigalpa"; 775 break; 776 case "HR": 777 $timezone = "Europe/Zagreb"; 778 break; 779 case "HT": 780 $timezone = "America/Port-au-Prince"; 781 break; 782 case "HU": 783 $timezone = "Europe/Budapest"; 784 break; 785 case "ID": 786 switch ($region) { 787 case "01": 788 $timezone = "Asia/Pontianak"; 789 break; 790 case "02": 791 $timezone = "Asia/Makassar"; 792 break; 793 case "03": 794 $timezone = "Asia/Jakarta"; 795 break; 796 case "04": 797 $timezone = "Asia/Jakarta"; 798 break; 799 case "05": 800 $timezone = "Asia/Jakarta"; 801 break; 802 case "06": 803 $timezone = "Asia/Jakarta"; 804 break; 805 case "07": 806 $timezone = "Asia/Jakarta"; 807 break; 808 case "08": 809 $timezone = "Asia/Jakarta"; 810 break; 811 case "09": 812 $timezone = "Asia/Jayapura"; 813 break; 814 case "10": 815 $timezone = "Asia/Jakarta"; 816 break; 817 case "11": 818 $timezone = "Asia/Pontianak"; 819 break; 820 case "12": 821 $timezone = "Asia/Makassar"; 822 break; 823 case "13": 824 $timezone = "Asia/Makassar"; 825 break; 826 case "14": 827 $timezone = "Asia/Makassar"; 828 break; 829 case "15": 830 $timezone = "Asia/Jakarta"; 831 break; 832 case "16": 833 $timezone = "Asia/Makassar"; 834 break; 835 case "17": 836 $timezone = "Asia/Makassar"; 837 break; 838 case "18": 839 $timezone = "Asia/Makassar"; 840 break; 841 case "19": 842 $timezone = "Asia/Pontianak"; 843 break; 844 case "20": 845 $timezone = "Asia/Makassar"; 846 break; 847 case "21": 848 $timezone = "Asia/Makassar"; 849 break; 850 case "22": 851 $timezone = "Asia/Makassar"; 852 break; 853 case "23": 854 $timezone = "Asia/Makassar"; 855 break; 856 case "24": 857 $timezone = "Asia/Jakarta"; 858 break; 859 case "25": 860 $timezone = "Asia/Pontianak"; 861 break; 862 case "26": 863 $timezone = "Asia/Pontianak"; 864 break; 865 case "28": 866 $timezone = "Asia/Jayapura"; 867 break; 868 case "29": 869 $timezone = "Asia/Makassar"; 870 break; 871 case "30": 872 $timezone = "Asia/Jakarta"; 873 break; 874 case "31": 875 $timezone = "Asia/Makassar"; 876 break; 877 case "32": 878 $timezone = "Asia/Jakarta"; 879 break; 880 case "33": 881 $timezone = "Asia/Jakarta"; 882 break; 883 case "34": 884 $timezone = "Asia/Makassar"; 885 break; 886 case "35": 887 $timezone = "Asia/Pontianak"; 888 break; 889 case "36": 890 $timezone = "Asia/Jayapura"; 891 break; 892 case "37": 893 $timezone = "Asia/Pontianak"; 894 break; 895 case "38": 896 $timezone = "Asia/Makassar"; 897 break; 898 case "39": 899 $timezone = "Asia/Jayapura"; 900 break; 901 case "40": 902 $timezone = "Asia/Pontianak"; 903 break; 904 case "41": 905 $timezone = "Asia/Makassar"; 906 break; 907 } 908 break; 909 case "IE": 910 $timezone = "Europe/Dublin"; 911 break; 912 case "IL": 913 $timezone = "Asia/Jerusalem"; 914 break; 915 case "IM": 916 $timezone = "Europe/Isle_of_Man"; 917 break; 918 case "IN": 919 $timezone = "Asia/Kolkata"; 920 break; 921 case "IO": 922 $timezone = "Indian/Chagos"; 923 break; 924 case "IQ": 925 $timezone = "Asia/Baghdad"; 926 break; 927 case "IR": 928 $timezone = "Asia/Tehran"; 929 break; 930 case "IS": 931 $timezone = "Atlantic/Reykjavik"; 932 break; 933 case "IT": 934 $timezone = "Europe/Rome"; 935 break; 936 case "JE": 937 $timezone = "Europe/Jersey"; 938 break; 939 case "JM": 940 $timezone = "America/Jamaica"; 941 break; 942 case "JO": 943 $timezone = "Asia/Amman"; 944 break; 945 case "JP": 946 $timezone = "Asia/Tokyo"; 947 break; 948 case "KE": 949 $timezone = "Africa/Nairobi"; 950 break; 951 case "KG": 952 $timezone = "Asia/Bishkek"; 953 break; 954 case "KH": 955 $timezone = "Asia/Phnom_Penh"; 956 break; 957 case "KI": 958 $timezone = "Pacific/Tarawa"; 959 break; 960 case "KM": 961 $timezone = "Indian/Comoro"; 962 break; 963 case "KN": 964 $timezone = "America/St_Kitts"; 965 break; 966 case "KP": 967 $timezone = "Asia/Pyongyang"; 968 break; 969 case "KR": 970 $timezone = "Asia/Seoul"; 971 break; 972 case "KW": 973 $timezone = "Asia/Kuwait"; 974 break; 975 case "KY": 976 $timezone = "America/Cayman"; 977 break; 978 case "KZ": 979 switch ($region) { 980 case "01": 981 $timezone = "Asia/Almaty"; 982 break; 983 case "02": 984 $timezone = "Asia/Almaty"; 985 break; 986 case "03": 987 $timezone = "Asia/Qyzylorda"; 988 break; 989 case "04": 990 $timezone = "Asia/Aqtobe"; 991 break; 992 case "05": 993 $timezone = "Asia/Qyzylorda"; 994 break; 995 case "06": 996 $timezone = "Asia/Aqtau"; 997 break; 998 case "07": 999 $timezone = "Asia/Oral"; 1000 break; 1001 case "08": 1002 $timezone = "Asia/Qyzylorda"; 1003 break; 1004 case "09": 1005 $timezone = "Asia/Aqtau"; 1006 break; 1007 case "10": 1008 $timezone = "Asia/Qyzylorda"; 1009 break; 1010 case "11": 1011 $timezone = "Asia/Almaty"; 1012 break; 1013 case "12": 1014 $timezone = "Asia/Qyzylorda"; 1015 break; 1016 case "13": 1017 $timezone = "Asia/Aqtobe"; 1018 break; 1019 case "14": 1020 $timezone = "Asia/Qyzylorda"; 1021 break; 1022 case "15": 1023 $timezone = "Asia/Almaty"; 1024 break; 1025 case "16": 1026 $timezone = "Asia/Aqtobe"; 1027 break; 1028 case "17": 1029 $timezone = "Asia/Almaty"; 1030 break; 1031 } 1032 break; 1033 case "LA": 1034 $timezone = "Asia/Vientiane"; 1035 break; 1036 case "LB": 1037 $timezone = "Asia/Beirut"; 1038 break; 1039 case "LC": 1040 $timezone = "America/St_Lucia"; 1041 break; 1042 case "LI": 1043 $timezone = "Europe/Vaduz"; 1044 break; 1045 case "LK": 1046 $timezone = "Asia/Colombo"; 1047 break; 1048 case "LR": 1049 $timezone = "Africa/Monrovia"; 1050 break; 1051 case "LS": 1052 $timezone = "Africa/Maseru"; 1053 break; 1054 case "LT": 1055 $timezone = "Europe/Vilnius"; 1056 break; 1057 case "LU": 1058 $timezone = "Europe/Luxembourg"; 1059 break; 1060 case "LV": 1061 $timezone = "Europe/Riga"; 1062 break; 1063 case "LY": 1064 $timezone = "Africa/Tripoli"; 1065 break; 1066 case "MA": 1067 $timezone = "Africa/Casablanca"; 1068 break; 1069 case "MC": 1070 $timezone = "Europe/Monaco"; 1071 break; 1072 case "MD": 1073 $timezone = "Europe/Chisinau"; 1074 break; 1075 case "ME": 1076 $timezone = "Europe/Podgorica"; 1077 break; 1078 case "MF": 1079 $timezone = "America/Marigot"; 1080 break; 1081 case "MG": 1082 $timezone = "Indian/Antananarivo"; 1083 break; 1084 case "MH": 1085 $timezone = "Pacific/Kwajalein"; 1086 break; 1087 case "MK": 1088 $timezone = "Europe/Skopje"; 1089 break; 1090 case "ML": 1091 $timezone = "Africa/Bamako"; 1092 break; 1093 case "MM": 1094 $timezone = "Asia/Rangoon"; 1095 break; 1096 case "MN": 1097 switch ($region) { 1098 case "06": 1099 $timezone = "Asia/Choibalsan"; 1100 break; 1101 case "11": 1102 $timezone = "Asia/Ulaanbaatar"; 1103 break; 1104 case "17": 1105 $timezone = "Asia/Choibalsan"; 1106 break; 1107 case "19": 1108 $timezone = "Asia/Hovd"; 1109 break; 1110 case "20": 1111 $timezone = "Asia/Ulaanbaatar"; 1112 break; 1113 case "21": 1114 $timezone = "Asia/Ulaanbaatar"; 1115 break; 1116 case "25": 1117 $timezone = "Asia/Ulaanbaatar"; 1118 break; 1119 } 1120 break; 1121 case "MO": 1122 $timezone = "Asia/Macau"; 1123 break; 1124 case "MP": 1125 $timezone = "Pacific/Saipan"; 1126 break; 1127 case "MQ": 1128 $timezone = "America/Martinique"; 1129 break; 1130 case "MR": 1131 $timezone = "Africa/Nouakchott"; 1132 break; 1133 case "MS": 1134 $timezone = "America/Montserrat"; 1135 break; 1136 case "MT": 1137 $timezone = "Europe/Malta"; 1138 break; 1139 case "MU": 1140 $timezone = "Indian/Mauritius"; 1141 break; 1142 case "MV": 1143 $timezone = "Indian/Maldives"; 1144 break; 1145 case "MW": 1146 $timezone = "Africa/Blantyre"; 1147 break; 1148 case "MX": 1149 switch ($region) { 1150 case "01": 1151 $timezone = "America/Mexico_City"; 1152 break; 1153 case "02": 1154 $timezone = "America/Tijuana"; 1155 break; 1156 case "03": 1157 $timezone = "America/Hermosillo"; 1158 break; 1159 case "04": 1160 $timezone = "America/Merida"; 1161 break; 1162 case "05": 1163 $timezone = "America/Mexico_City"; 1164 break; 1165 case "06": 1166 $timezone = "America/Chihuahua"; 1167 break; 1168 case "07": 1169 $timezone = "America/Monterrey"; 1170 break; 1171 case "08": 1172 $timezone = "America/Mexico_City"; 1173 break; 1174 case "09": 1175 $timezone = "America/Mexico_City"; 1176 break; 1177 case "10": 1178 $timezone = "America/Mazatlan"; 1179 break; 1180 case "11": 1181 $timezone = "America/Mexico_City"; 1182 break; 1183 case "12": 1184 $timezone = "America/Mexico_City"; 1185 break; 1186 case "13": 1187 $timezone = "America/Mexico_City"; 1188 break; 1189 case "14": 1190 $timezone = "America/Mazatlan"; 1191 break; 1192 case "15": 1193 $timezone = "America/Chihuahua"; 1194 break; 1195 case "16": 1196 $timezone = "America/Mexico_City"; 1197 break; 1198 case "17": 1199 $timezone = "America/Mexico_City"; 1200 break; 1201 case "18": 1202 $timezone = "America/Mazatlan"; 1203 break; 1204 case "19": 1205 $timezone = "America/Monterrey"; 1206 break; 1207 case "20": 1208 $timezone = "America/Mexico_City"; 1209 break; 1210 case "21": 1211 $timezone = "America/Mexico_City"; 1212 break; 1213 case "22": 1214 $timezone = "America/Mexico_City"; 1215 break; 1216 case "23": 1217 $timezone = "America/Cancun"; 1218 break; 1219 case "24": 1220 $timezone = "America/Mexico_City"; 1221 break; 1222 case "25": 1223 $timezone = "America/Mazatlan"; 1224 break; 1225 case "26": 1226 $timezone = "America/Hermosillo"; 1227 break; 1228 case "27": 1229 $timezone = "America/Merida"; 1230 break; 1231 case "28": 1232 $timezone = "America/Monterrey"; 1233 break; 1234 case "29": 1235 $timezone = "America/Mexico_City"; 1236 break; 1237 case "30": 1238 $timezone = "America/Mexico_City"; 1239 break; 1240 case "31": 1241 $timezone = "America/Merida"; 1242 break; 1243 case "32": 1244 $timezone = "America/Monterrey"; 1245 break; 1246 } 1247 break; 1248 case "MY": 1249 switch ($region) { 1250 case "01": 1251 $timezone = "Asia/Kuala_Lumpur"; 1252 break; 1253 case "02": 1254 $timezone = "Asia/Kuala_Lumpur"; 1255 break; 1256 case "03": 1257 $timezone = "Asia/Kuala_Lumpur"; 1258 break; 1259 case "04": 1260 $timezone = "Asia/Kuala_Lumpur"; 1261 break; 1262 case "05": 1263 $timezone = "Asia/Kuala_Lumpur"; 1264 break; 1265 case "06": 1266 $timezone = "Asia/Kuala_Lumpur"; 1267 break; 1268 case "07": 1269 $timezone = "Asia/Kuala_Lumpur"; 1270 break; 1271 case "08": 1272 $timezone = "Asia/Kuala_Lumpur"; 1273 break; 1274 case "09": 1275 $timezone = "Asia/Kuala_Lumpur"; 1276 break; 1277 case "11": 1278 $timezone = "Asia/Kuching"; 1279 break; 1280 case "12": 1281 $timezone = "Asia/Kuala_Lumpur"; 1282 break; 1283 case "13": 1284 $timezone = "Asia/Kuala_Lumpur"; 1285 break; 1286 case "14": 1287 $timezone = "Asia/Kuala_Lumpur"; 1288 break; 1289 case "15": 1290 $timezone = "Asia/Kuching"; 1291 break; 1292 case "16": 1293 $timezone = "Asia/Kuching"; 1294 break; 1295 } 1296 break; 1297 case "MZ": 1298 $timezone = "Africa/Maputo"; 1299 break; 1300 case "NA": 1301 $timezone = "Africa/Windhoek"; 1302 break; 1303 case "NC": 1304 $timezone = "Pacific/Noumea"; 1305 break; 1306 case "NE": 1307 $timezone = "Africa/Niamey"; 1308 break; 1309 case "NF": 1310 $timezone = "Pacific/Norfolk"; 1311 break; 1312 case "NG": 1313 $timezone = "Africa/Lagos"; 1314 break; 1315 case "NI": 1316 $timezone = "America/Managua"; 1317 break; 1318 case "NL": 1319 $timezone = "Europe/Amsterdam"; 1320 break; 1321 case "NO": 1322 $timezone = "Europe/Oslo"; 1323 break; 1324 case "NP": 1325 $timezone = "Asia/Kathmandu"; 1326 break; 1327 case "NR": 1328 $timezone = "Pacific/Nauru"; 1329 break; 1330 case "NU": 1331 $timezone = "Pacific/Niue"; 1332 break; 1333 case "NZ": 1334 switch ($region) { 1335 case "85": 1336 $timezone = "Pacific/Auckland"; 1337 break; 1338 case "E7": 1339 $timezone = "Pacific/Auckland"; 1340 break; 1341 case "E8": 1342 $timezone = "Pacific/Auckland"; 1343 break; 1344 case "E9": 1345 $timezone = "Pacific/Auckland"; 1346 break; 1347 case "F1": 1348 $timezone = "Pacific/Auckland"; 1349 break; 1350 case "F2": 1351 $timezone = "Pacific/Auckland"; 1352 break; 1353 case "F3": 1354 $timezone = "Pacific/Auckland"; 1355 break; 1356 case "F4": 1357 $timezone = "Pacific/Auckland"; 1358 break; 1359 case "F5": 1360 $timezone = "Pacific/Auckland"; 1361 break; 1362 case "F6": 1363 $timezone = "Pacific/Auckland"; 1364 break; 1365 case "F7": 1366 $timezone = "Pacific/Chatham"; 1367 break; 1368 case "F8": 1369 $timezone = "Pacific/Auckland"; 1370 break; 1371 case "F9": 1372 $timezone = "Pacific/Auckland"; 1373 break; 1374 case "G1": 1375 $timezone = "Pacific/Auckland"; 1376 break; 1377 case "G2": 1378 $timezone = "Pacific/Auckland"; 1379 break; 1380 case "G3": 1381 $timezone = "Pacific/Auckland"; 1382 break; 1383 } 1384 break; 1385 case "OM": 1386 $timezone = "Asia/Muscat"; 1387 break; 1388 case "PA": 1389 $timezone = "America/Panama"; 1390 break; 1391 case "PE": 1392 $timezone = "America/Lima"; 1393 break; 1394 case "PF": 1395 $timezone = "Pacific/Marquesas"; 1396 break; 1397 case "PG": 1398 $timezone = "Pacific/Port_Moresby"; 1399 break; 1400 case "PH": 1401 $timezone = "Asia/Manila"; 1402 break; 1403 case "PK": 1404 $timezone = "Asia/Karachi"; 1405 break; 1406 case "PL": 1407 $timezone = "Europe/Warsaw"; 1408 break; 1409 case "PM": 1410 $timezone = "America/Miquelon"; 1411 break; 1412 case "PN": 1413 $timezone = "Pacific/Pitcairn"; 1414 break; 1415 case "PR": 1416 $timezone = "America/Puerto_Rico"; 1417 break; 1418 case "PS": 1419 $timezone = "Asia/Gaza"; 1420 break; 1421 case "PT": 1422 switch ($region) { 1423 case "02": 1424 $timezone = "Europe/Lisbon"; 1425 break; 1426 case "03": 1427 $timezone = "Europe/Lisbon"; 1428 break; 1429 case "04": 1430 $timezone = "Europe/Lisbon"; 1431 break; 1432 case "05": 1433 $timezone = "Europe/Lisbon"; 1434 break; 1435 case "06": 1436 $timezone = "Europe/Lisbon"; 1437 break; 1438 case "07": 1439 $timezone = "Europe/Lisbon"; 1440 break; 1441 case "08": 1442 $timezone = "Europe/Lisbon"; 1443 break; 1444 case "09": 1445 $timezone = "Europe/Lisbon"; 1446 break; 1447 case "10": 1448 $timezone = "Atlantic/Madeira"; 1449 break; 1450 case "11": 1451 $timezone = "Europe/Lisbon"; 1452 break; 1453 case "13": 1454 $timezone = "Europe/Lisbon"; 1455 break; 1456 case "14": 1457 $timezone = "Europe/Lisbon"; 1458 break; 1459 case "16": 1460 $timezone = "Europe/Lisbon"; 1461 break; 1462 case "17": 1463 $timezone = "Europe/Lisbon"; 1464 break; 1465 case "18": 1466 $timezone = "Europe/Lisbon"; 1467 break; 1468 case "19": 1469 $timezone = "Europe/Lisbon"; 1470 break; 1471 case "20": 1472 $timezone = "Europe/Lisbon"; 1473 break; 1474 case "21": 1475 $timezone = "Europe/Lisbon"; 1476 break; 1477 case "22": 1478 $timezone = "Europe/Lisbon"; 1479 break; 1480 case "23": 1481 $timezone = "Atlantic/Azores"; 1482 break; 1483 } 1484 break; 1485 case "PW": 1486 $timezone = "Pacific/Palau"; 1487 break; 1488 case "PY": 1489 $timezone = "America/Asuncion"; 1490 break; 1491 case "QA": 1492 $timezone = "Asia/Qatar"; 1493 break; 1494 case "RE": 1495 $timezone = "Indian/Reunion"; 1496 break; 1497 case "RO": 1498 $timezone = "Europe/Bucharest"; 1499 break; 1500 case "RS": 1501 $timezone = "Europe/Belgrade"; 1502 break; 1503 case "RU": 1504 switch ($region) { 1505 case "01": 1506 $timezone = "Europe/Volgograd"; 1507 break; 1508 case "02": 1509 $timezone = "Asia/Irkutsk"; 1510 break; 1511 case "03": 1512 $timezone = "Asia/Novokuznetsk"; 1513 break; 1514 case "04": 1515 $timezone = "Asia/Novosibirsk"; 1516 break; 1517 case "05": 1518 $timezone = "Asia/Vladivostok"; 1519 break; 1520 case "06": 1521 $timezone = "Europe/Moscow"; 1522 break; 1523 case "07": 1524 $timezone = "Europe/Volgograd"; 1525 break; 1526 case "08": 1527 $timezone = "Europe/Samara"; 1528 break; 1529 case "09": 1530 $timezone = "Europe/Moscow"; 1531 break; 1532 case "10": 1533 $timezone = "Europe/Moscow"; 1534 break; 1535 case "11": 1536 $timezone = "Asia/Irkutsk"; 1537 break; 1538 case "12": 1539 $timezone = "Europe/Volgograd"; 1540 break; 1541 case "13": 1542 $timezone = "Asia/Yekaterinburg"; 1543 break; 1544 case "14": 1545 $timezone = "Asia/Irkutsk"; 1546 break; 1547 case "15": 1548 $timezone = "Asia/Anadyr"; 1549 break; 1550 case "16": 1551 $timezone = "Europe/Samara"; 1552 break; 1553 case "17": 1554 $timezone = "Europe/Volgograd"; 1555 break; 1556 case "18": 1557 $timezone = "Asia/Krasnoyarsk"; 1558 break; 1559 case "20": 1560 $timezone = "Asia/Irkutsk"; 1561 break; 1562 case "21": 1563 $timezone = "Europe/Moscow"; 1564 break; 1565 case "22": 1566 $timezone = "Europe/Volgograd"; 1567 break; 1568 case "23": 1569 $timezone = "Europe/Kaliningrad"; 1570 break; 1571 case "24": 1572 $timezone = "Europe/Volgograd"; 1573 break; 1574 case "25": 1575 $timezone = "Europe/Moscow"; 1576 break; 1577 case "26": 1578 $timezone = "Asia/Kamchatka"; 1579 break; 1580 case "27": 1581 $timezone = "Europe/Volgograd"; 1582 break; 1583 case "28": 1584 $timezone = "Europe/Moscow"; 1585 break; 1586 case "29": 1587 $timezone = "Asia/Novokuznetsk"; 1588 break; 1589 case "30": 1590 $timezone = "Asia/Vladivostok"; 1591 break; 1592 case "31": 1593 $timezone = "Asia/Krasnoyarsk"; 1594 break; 1595 case "32": 1596 $timezone = "Asia/Omsk"; 1597 break; 1598 case "33": 1599 $timezone = "Asia/Yekaterinburg"; 1600 break; 1601 case "34": 1602 $timezone = "Asia/Yekaterinburg"; 1603 break; 1604 case "35": 1605 $timezone = "Asia/Yekaterinburg"; 1606 break; 1607 case "36": 1608 $timezone = "Asia/Anadyr"; 1609 break; 1610 case "37": 1611 $timezone = "Europe/Moscow"; 1612 break; 1613 case "38": 1614 $timezone = "Europe/Volgograd"; 1615 break; 1616 case "39": 1617 $timezone = "Asia/Krasnoyarsk"; 1618 break; 1619 case "40": 1620 $timezone = "Asia/Yekaterinburg"; 1621 break; 1622 case "41": 1623 $timezone = "Europe/Moscow"; 1624 break; 1625 case "42": 1626 $timezone = "Europe/Moscow"; 1627 break; 1628 case "43": 1629 $timezone = "Europe/Moscow"; 1630 break; 1631 case "44": 1632 $timezone = "Asia/Magadan"; 1633 break; 1634 case "45": 1635 $timezone = "Europe/Samara"; 1636 break; 1637 case "46": 1638 $timezone = "Europe/Samara"; 1639 break; 1640 case "47": 1641 $timezone = "Europe/Moscow"; 1642 break; 1643 case "48": 1644 $timezone = "Europe/Moscow"; 1645 break; 1646 case "49": 1647 $timezone = "Europe/Moscow"; 1648 break; 1649 case "50": 1650 $timezone = "Asia/Yekaterinburg"; 1651 break; 1652 case "51": 1653 $timezone = "Europe/Moscow"; 1654 break; 1655 case "52": 1656 $timezone = "Europe/Moscow"; 1657 break; 1658 case "53": 1659 $timezone = "Asia/Novosibirsk"; 1660 break; 1661 case "54": 1662 $timezone = "Asia/Omsk"; 1663 break; 1664 case "55": 1665 $timezone = "Europe/Samara"; 1666 break; 1667 case "56": 1668 $timezone = "Europe/Moscow"; 1669 break; 1670 case "57": 1671 $timezone = "Europe/Samara"; 1672 break; 1673 case "58": 1674 $timezone = "Asia/Yekaterinburg"; 1675 break; 1676 case "59": 1677 $timezone = "Asia/Vladivostok"; 1678 break; 1679 case "60": 1680 $timezone = "Europe/Kaliningrad"; 1681 break; 1682 case "61": 1683 $timezone = "Europe/Volgograd"; 1684 break; 1685 case "62": 1686 $timezone = "Europe/Moscow"; 1687 break; 1688 case "63": 1689 $timezone = "Asia/Yakutsk"; 1690 break; 1691 case "64": 1692 $timezone = "Asia/Sakhalin"; 1693 break; 1694 case "65": 1695 $timezone = "Europe/Samara"; 1696 break; 1697 case "66": 1698 $timezone = "Europe/Moscow"; 1699 break; 1700 case "67": 1701 $timezone = "Europe/Samara"; 1702 break; 1703 case "68": 1704 $timezone = "Europe/Volgograd"; 1705 break; 1706 case "69": 1707 $timezone = "Europe/Moscow"; 1708 break; 1709 case "70": 1710 $timezone = "Europe/Volgograd"; 1711 break; 1712 case "71": 1713 $timezone = "Asia/Yekaterinburg"; 1714 break; 1715 case "72": 1716 $timezone = "Europe/Moscow"; 1717 break; 1718 case "73": 1719 $timezone = "Europe/Samara"; 1720 break; 1721 case "74": 1722 $timezone = "Asia/Krasnoyarsk"; 1723 break; 1724 case "75": 1725 $timezone = "Asia/Novosibirsk"; 1726 break; 1727 case "76": 1728 $timezone = "Europe/Moscow"; 1729 break; 1730 case "77": 1731 $timezone = "Europe/Moscow"; 1732 break; 1733 case "78": 1734 $timezone = "Asia/Yekaterinburg"; 1735 break; 1736 case "79": 1737 $timezone = "Asia/Irkutsk"; 1738 break; 1739 case "80": 1740 $timezone = "Asia/Yekaterinburg"; 1741 break; 1742 case "81": 1743 $timezone = "Europe/Samara"; 1744 break; 1745 case "82": 1746 $timezone = "Asia/Irkutsk"; 1747 break; 1748 case "83": 1749 $timezone = "Europe/Moscow"; 1750 break; 1751 case "84": 1752 $timezone = "Europe/Volgograd"; 1753 break; 1754 case "85": 1755 $timezone = "Europe/Moscow"; 1756 break; 1757 case "86": 1758 $timezone = "Europe/Moscow"; 1759 break; 1760 case "87": 1761 $timezone = "Asia/Novosibirsk"; 1762 break; 1763 case "88": 1764 $timezone = "Europe/Moscow"; 1765 break; 1766 case "89": 1767 $timezone = "Asia/Vladivostok"; 1768 break; 1769 case "90": 1770 $timezone = "Asia/Yekaterinburg"; 1771 break; 1772 case "91": 1773 $timezone = "Asia/Krasnoyarsk"; 1774 break; 1775 case "92": 1776 $timezone = "Asia/Anadyr"; 1777 break; 1778 case "93": 1779 $timezone = "Asia/Irkutsk"; 1780 break; 1781 } 1782 break; 1783 case "RW": 1784 $timezone = "Africa/Kigali"; 1785 break; 1786 case "SA": 1787 $timezone = "Asia/Riyadh"; 1788 break; 1789 case "SB": 1790 $timezone = "Pacific/Guadalcanal"; 1791 break; 1792 case "SC": 1793 $timezone = "Indian/Mahe"; 1794 break; 1795 case "SD": 1796 $timezone = "Africa/Khartoum"; 1797 break; 1798 case "SE": 1799 $timezone = "Europe/Stockholm"; 1800 break; 1801 case "SG": 1802 $timezone = "Asia/Singapore"; 1803 break; 1804 case "SH": 1805 $timezone = "Atlantic/St_Helena"; 1806 break; 1807 case "SI": 1808 $timezone = "Europe/Ljubljana"; 1809 break; 1810 case "SJ": 1811 $timezone = "Arctic/Longyearbyen"; 1812 break; 1813 case "SK": 1814 $timezone = "Europe/Bratislava"; 1815 break; 1816 case "SL": 1817 $timezone = "Africa/Freetown"; 1818 break; 1819 case "SM": 1820 $timezone = "Europe/San_Marino"; 1821 break; 1822 case "SN": 1823 $timezone = "Africa/Dakar"; 1824 break; 1825 case "SO": 1826 $timezone = "Africa/Mogadishu"; 1827 break; 1828 case "SR": 1829 $timezone = "America/Paramaribo"; 1830 break; 1831 case "SS": 1832 $timezone = "Africa/Juba"; 1833 break; 1834 case "ST": 1835 $timezone = "Africa/Sao_Tome"; 1836 break; 1837 case "SV": 1838 $timezone = "America/El_Salvador"; 1839 break; 1840 case "SX": 1841 $timezone = "America/Curacao"; 1842 break; 1843 case "SY": 1844 $timezone = "Asia/Damascus"; 1845 break; 1846 case "SZ": 1847 $timezone = "Africa/Mbabane"; 1848 break; 1849 case "TC": 1850 $timezone = "America/Grand_Turk"; 1851 break; 1852 case "TD": 1853 $timezone = "Africa/Ndjamena"; 1854 break; 1855 case "TF": 1856 $timezone = "Indian/Kerguelen"; 1857 break; 1858 case "TG": 1859 $timezone = "Africa/Lome"; 1860 break; 1861 case "TH": 1862 $timezone = "Asia/Bangkok"; 1863 break; 1864 case "TJ": 1865 $timezone = "Asia/Dushanbe"; 1866 break; 1867 case "TK": 1868 $timezone = "Pacific/Fakaofo"; 1869 break; 1870 case "TL": 1871 $timezone = "Asia/Dili"; 1872 break; 1873 case "TM": 1874 $timezone = "Asia/Ashgabat"; 1875 break; 1876 case "TN": 1877 $timezone = "Africa/Tunis"; 1878 break; 1879 case "TO": 1880 $timezone = "Pacific/Tongatapu"; 1881 break; 1882 case "TR": 1883 $timezone = "Asia/Istanbul"; 1884 break; 1885 case "TT": 1886 $timezone = "America/Port_of_Spain"; 1887 break; 1888 case "TV": 1889 $timezone = "Pacific/Funafuti"; 1890 break; 1891 case "TW": 1892 $timezone = "Asia/Taipei"; 1893 break; 1894 case "TZ": 1895 $timezone = "Africa/Dar_es_Salaam"; 1896 break; 1897 case "UA": 1898 switch ($region) { 1899 case "01": 1900 $timezone = "Europe/Kiev"; 1901 break; 1902 case "02": 1903 $timezone = "Europe/Kiev"; 1904 break; 1905 case "03": 1906 $timezone = "Europe/Uzhgorod"; 1907 break; 1908 case "04": 1909 $timezone = "Europe/Zaporozhye"; 1910 break; 1911 case "05": 1912 $timezone = "Europe/Zaporozhye"; 1913 break; 1914 case "06": 1915 $timezone = "Europe/Uzhgorod"; 1916 break; 1917 case "07": 1918 $timezone = "Europe/Zaporozhye"; 1919 break; 1920 case "08": 1921 $timezone = "Europe/Simferopol"; 1922 break; 1923 case "09": 1924 $timezone = "Europe/Kiev"; 1925 break; 1926 case "10": 1927 $timezone = "Europe/Zaporozhye"; 1928 break; 1929 case "11": 1930 $timezone = "Europe/Simferopol"; 1931 break; 1932 case "12": 1933 $timezone = "Europe/Kiev"; 1934 break; 1935 case "13": 1936 $timezone = "Europe/Kiev"; 1937 break; 1938 case "14": 1939 $timezone = "Europe/Zaporozhye"; 1940 break; 1941 case "15": 1942 $timezone = "Europe/Uzhgorod"; 1943 break; 1944 case "16": 1945 $timezone = "Europe/Zaporozhye"; 1946 break; 1947 case "17": 1948 $timezone = "Europe/Simferopol"; 1949 break; 1950 case "18": 1951 $timezone = "Europe/Zaporozhye"; 1952 break; 1953 case "19": 1954 $timezone = "Europe/Kiev"; 1955 break; 1956 case "20": 1957 $timezone = "Europe/Simferopol"; 1958 break; 1959 case "21": 1960 $timezone = "Europe/Kiev"; 1961 break; 1962 case "22": 1963 $timezone = "Europe/Uzhgorod"; 1964 break; 1965 case "23": 1966 $timezone = "Europe/Kiev"; 1967 break; 1968 case "24": 1969 $timezone = "Europe/Uzhgorod"; 1970 break; 1971 case "25": 1972 $timezone = "Europe/Uzhgorod"; 1973 break; 1974 case "26": 1975 $timezone = "Europe/Zaporozhye"; 1976 break; 1977 case "27": 1978 $timezone = "Europe/Kiev"; 1979 break; 1980 } 1981 break; 1982 case "UG": 1983 $timezone = "Africa/Kampala"; 1984 break; 1985 case "UM": 1986 $timezone = "Pacific/Wake"; 1987 break; 1988 case "US": 1989 switch ($region) { 1990 case "AK": 1991 $timezone = "America/Anchorage"; 1992 break; 1993 case "AL": 1994 $timezone = "America/Chicago"; 1995 break; 1996 case "AR": 1997 $timezone = "America/Chicago"; 1998 break; 1999 case "AZ": 2000 $timezone = "America/Phoenix"; 2001 break; 2002 case "CA": 2003 $timezone = "America/Los_Angeles"; 2004 break; 2005 case "CO": 2006 $timezone = "America/Denver"; 2007 break; 2008 case "CT": 2009 $timezone = "America/New_York"; 2010 break; 2011 case "DC": 2012 $timezone = "America/New_York"; 2013 break; 2014 case "DE": 2015 $timezone = "America/New_York"; 2016 break; 2017 case "FL": 2018 $timezone = "America/New_York"; 2019 break; 2020 case "GA": 2021 $timezone = "America/New_York"; 2022 break; 2023 case "HI": 2024 $timezone = "Pacific/Honolulu"; 2025 break; 2026 case "IA": 2027 $timezone = "America/Chicago"; 2028 break; 2029 case "ID": 2030 $timezone = "America/Denver"; 2031 break; 2032 case "IL": 2033 $timezone = "America/Chicago"; 2034 break; 2035 case "IN": 2036 $timezone = "America/Indiana/Indianapolis"; 2037 break; 2038 case "KS": 2039 $timezone = "America/Chicago"; 2040 break; 2041 case "KY": 2042 $timezone = "America/New_York"; 2043 break; 2044 case "LA": 2045 $timezone = "America/Chicago"; 2046 break; 2047 case "MA": 2048 $timezone = "America/New_York"; 2049 break; 2050 case "MD": 2051 $timezone = "America/New_York"; 2052 break; 2053 case "ME": 2054 $timezone = "America/New_York"; 2055 break; 2056 case "MI": 2057 $timezone = "America/New_York"; 2058 break; 2059 case "MN": 2060 $timezone = "America/Chicago"; 2061 break; 2062 case "MO": 2063 $timezone = "America/Chicago"; 2064 break; 2065 case "MS": 2066 $timezone = "America/Chicago"; 2067 break; 2068 case "MT": 2069 $timezone = "America/Denver"; 2070 break; 2071 case "NC": 2072 $timezone = "America/New_York"; 2073 break; 2074 case "ND": 2075 $timezone = "America/Chicago"; 2076 break; 2077 case "NE": 2078 $timezone = "America/Chicago"; 2079 break; 2080 case "NH": 2081 $timezone = "America/New_York"; 2082 break; 2083 case "NJ": 2084 $timezone = "America/New_York"; 2085 break; 2086 case "NM": 2087 $timezone = "America/Denver"; 2088 break; 2089 case "NV": 2090 $timezone = "America/Los_Angeles"; 2091 break; 2092 case "NY": 2093 $timezone = "America/New_York"; 2094 break; 2095 case "OH": 2096 $timezone = "America/New_York"; 2097 break; 2098 case "OK": 2099 $timezone = "America/Chicago"; 2100 break; 2101 case "OR": 2102 $timezone = "America/Los_Angeles"; 2103 break; 2104 case "PA": 2105 $timezone = "America/New_York"; 2106 break; 2107 case "RI": 2108 $timezone = "America/New_York"; 2109 break; 2110 case "SC": 2111 $timezone = "America/New_York"; 2112 break; 2113 case "SD": 2114 $timezone = "America/Chicago"; 2115 break; 2116 case "TN": 2117 $timezone = "America/Chicago"; 2118 break; 2119 case "TX": 2120 $timezone = "America/Chicago"; 2121 break; 2122 case "UT": 2123 $timezone = "America/Denver"; 2124 break; 2125 case "VA": 2126 $timezone = "America/New_York"; 2127 break; 2128 case "VT": 2129 $timezone = "America/New_York"; 2130 break; 2131 case "WA": 2132 $timezone = "America/Los_Angeles"; 2133 break; 2134 case "WI": 2135 $timezone = "America/Chicago"; 2136 break; 2137 case "WV": 2138 $timezone = "America/New_York"; 2139 break; 2140 case "WY": 2141 $timezone = "America/Denver"; 2142 break; 2143 } 2144 break; 2145 case "UY": 2146 $timezone = "America/Montevideo"; 2147 break; 2148 case "UZ": 2149 switch ($region) { 2150 case "01": 2151 $timezone = "Asia/Tashkent"; 2152 break; 2153 case "02": 2154 $timezone = "Asia/Samarkand"; 2155 break; 2156 case "03": 2157 $timezone = "Asia/Tashkent"; 2158 break; 2159 case "05": 2160 $timezone = "Asia/Samarkand"; 2161 break; 2162 case "06": 2163 $timezone = "Asia/Tashkent"; 2164 break; 2165 case "07": 2166 $timezone = "Asia/Samarkand"; 2167 break; 2168 case "08": 2169 $timezone = "Asia/Samarkand"; 2170 break; 2171 case "09": 2172 $timezone = "Asia/Samarkand"; 2173 break; 2174 case "10": 2175 $timezone = "Asia/Samarkand"; 2176 break; 2177 case "12": 2178 $timezone = "Asia/Samarkand"; 2179 break; 2180 case "13": 2181 $timezone = "Asia/Tashkent"; 2182 break; 2183 case "14": 2184 $timezone = "Asia/Tashkent"; 2185 break; 2186 } 2187 break; 2188 case "VA": 2189 $timezone = "Europe/Vatican"; 2190 break; 2191 case "VC": 2192 $timezone = "America/St_Vincent"; 2193 break; 2194 case "VE": 2195 $timezone = "America/Caracas"; 2196 break; 2197 case "VG": 2198 $timezone = "America/Tortola"; 2199 break; 2200 case "VI": 2201 $timezone = "America/St_Thomas"; 2202 break; 2203 case "VN": 2204 $timezone = "Asia/Phnom_Penh"; 2205 break; 2206 case "VU": 2207 $timezone = "Pacific/Efate"; 2208 break; 2209 case "WF": 2210 $timezone = "Pacific/Wallis"; 2211 break; 2212 case "WS": 2213 $timezone = "Pacific/Pago_Pago"; 2214 break; 2215 case "YE": 2216 $timezone = "Asia/Aden"; 2217 break; 2218 case "YT": 2219 $timezone = "Indian/Mayotte"; 2220 break; 2221 case "YU": 2222 $timezone = "Europe/Belgrade"; 2223 break; 2224 case "ZA": 2225 $timezone = "Africa/Johannesburg"; 2226 break; 2227 case "ZM": 2228 $timezone = "Africa/Lusaka"; 2229 break; 2230 case "ZW": 2231 $timezone = "Africa/Harare"; 2232 break; 2233 } 2234 return $timezone; 2235} 2236