php-workaround.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * A list of PHP timezones that were supported until 5.5.9, removed in
  4. * PHP 5.5.10 and re-introduced in PHP 5.5.17
  5. *
  6. * DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC) returns them,
  7. * but they are invalid for new DateTimeZone(). Fixed in PHP 5.5.17.
  8. * https://bugs.php.net/bug.php?id=66985
  9. *
  10. * Some more info here:
  11. * http://evertpot.com/php-5-5-10-timezone-changes/
  12. *
  13. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  14. * @license http://sabre.io/license/ Modified BSD License
  15. */
  16. return array(
  17. 'CST6CDT' => 'America/Chicago',
  18. 'Cuba' => 'America/Havana',
  19. 'Egypt' => 'Africa/Cairo',
  20. 'Eire' => 'Europe/Dublin',
  21. 'EST5EDT' => 'America/New_York',
  22. 'Factory' => 'UTC',
  23. 'GB-Eire' => 'Europe/London',
  24. 'GMT0' => 'UTC',
  25. 'Greenwich' => 'UTC',
  26. 'Hongkong' => 'Asia/Hong_Kong',
  27. 'Iceland' => 'Atlantic/Reykjavik',
  28. 'Iran' => 'Asia/Tehran',
  29. 'Israel' => 'Asia/Jerusalem',
  30. 'Jamaica' => 'America/Jamaica',
  31. 'Japan' => 'Asia/Tokyo',
  32. 'Kwajalein' => 'Pacific/Kwajalein',
  33. 'Libya' => 'Africa/Tripoli',
  34. 'MST7MDT' => 'America/Denver',
  35. 'Navajo' => 'America/Denver',
  36. 'NZ-CHAT' => 'Pacific/Chatham',
  37. 'Poland' => 'Europe/Warsaw',
  38. 'Portugal' => 'Europe/Lisbon',
  39. 'PST8PDT' => 'America/Los_Angeles',
  40. 'Singapore' => 'Asia/Singapore',
  41. 'Turkey' => 'Europe/Istanbul',
  42. 'Universal' => 'UTC',
  43. 'W-SU' => 'Europe/Moscow',
  44. 'Zulu' => 'UTC',
  45. );