Issues

ZF-2290: add method to get/set the timezone by a locale (Zend/Locale/Data/supplementalData.xml)

Issue Type: New Feature Created: 2007-12-10T13:45:52.000+0000 Last Updated: 2008-03-21T16:25:17.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Marc Bennewitz (GIATA mbH) (mben) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

  • Zend_Locale

Related issues: Attachments:

Description

I think it is usefull get the timezone by the locale region or by the default region of a given language e.g: de_DE => DE => Europe/Berlin de_AT => AT => Europe/Vienna en => GB => Europe/London (using the default region or throw an Exception)

the information is stored in the file Zend/Locale/Data/supplementalData.xml

Comments

Posted by Thomas Weidner (thomas) on 2007-12-10T15:41:36.000+0000

There are a few things to mention:

  • The timezones are not standardized. Which means that they do not correspond with php's timezone database.
  • The avaiable localized data for timezones is not complete. Several timezones are not filled within the multiple languages.
  • Timezones differ between windows and unix or php. For example the windows timezone "africa_central" is unknown in php.
  • Localized/Normalized timezones will probably not work with Zend_Date
  • Giving the timezone for a locale could be problematic... for example the locale "en"... it would support about 20 different timezones... which to return ??
  • Also what to return if there are different supported timezones... for example within "zh_CN" or "ru_RU"

Posted by Marc Bennewitz (GIATA mbH) (mben) on 2007-12-11T17:17:16.000+0000

ok it need a matching table to parse timezones to the right format.

for only a given locale it can throw an exception, but on a given country code it can return a list of available timezones for this country. Than the timezone can relatively well Concerts.

Posted by Thomas Weidner (thomas) on 2008-01-06T15:03:37.000+0000

The possible and available information have been implemented within the new I18N core. See SVN-7357.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts