America/Montreal doesn't work in php but is in /usr/share/zoneinfo

Asked by Anthony on 2013-11-14

Hi,

I'm trying to figure how to go about a removed timezone and I've created a bug report a little while ago, without enough understanding (bug: https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/1245978).

My problem is I cannot use America/Montreal in php since tzdata update (revision: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/tzdata/precise-updates/revision/86). I know I can use America/Toronto and it will work the same, but that implies to re-visit and modify too many apps in a lot of servers in many different places.. Some not even meant to accept incoming connections from me.

From what I understand:
- iana.org, in their 2013e data update, removed the zone America/Montreal from zone.tab, and added a "Link" from America/Montreal to America/Toronto in the backward file. (https://github.com/eggert/tz/commit/45dcf69b45087cff50282d4da64b86a7d705ddf3)
- Php seems to use tzdata but doesn't seem to see that "Link". Don't know if it's supposed to.
- And I believe /usr/share/zoneinfo is provided by tzdata and it does contain America/Montreal!!

So, what should I do? Should America/Montreal still work has a "link"? If so is it a tzdata issue?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu tzdata Edit question
Assignee:
No assignee Edit question
Solved by:
Anthony
Solved:
2013-11-14
Last query:
2013-11-14
Last reply:
Anthony (a-servedio) said : #1

TZ Coordinator Paul Eggert says it's probably php that reads zone.tab directly, assuming incorrectly that only the strings listed in that file are valid time-zones. (https://github.com/eggert/tz/commit/45dcf69b45087cff50282d4da64b86a7d705ddf3#commitcomment-4602830)

Can someone confirm it's not a tzdata issue?

Anthony (a-servedio) said : #2

ok, it doesn't seem to be tzdata. Seems like php's DateTimeZone::listIdentifiers( ) and timezone_identifiers_list( )

See https://answers.launchpad.net/ubuntu/+source/php5/+question/239238 for more info, when available.

Anthony (a-servedio) said : #4

ok, it doesn't seem to be tzdata. Seems like php's DateTimeZone::listIdentifiers( ) and timezone_identifiers_list( )

See https://bugs.php.net/bug.php?id=66102 for bug report