Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 197059

Summary: dev-php5/pecl-timezonedb ebuild request
Product: Gentoo Linux Reporter: Rodrigo Severo <rodrigo>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: EBUILD, InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rodrigo Severo 2007-10-25 17:46:06 UTC
Since version 5.1 php ships it's own timezone tables. Yes you read right, php doesn't use the OS timezone tables!!! Don't ask me why, I can't tell.

The problem created is that despite having updated the timezone-data package my php is getting wrong local times as php's own timezone tables aren't updated. I see this problem now with brazilian timezone tables but it is happening regulary for several countries on each timezone-data update.

There is a PECL extension available for updating the timezone php internal tables: timezone-db. You can see it at <http://pecl.php.net/package/timezonedb>.

I'm requesting that a new package (dev-php5/pecl-timezone-db?) be created so php timezone tables can get up to date between php upgrades. Please consider this issue with care as there are many people using php with wrong timezone data without even being aware of it.

I can open bugs for new timezone-db versions released in PECL as I do with timezone-data if anyone is interested.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-27 13:01:52 UTC
In PHP overlay now.

http://overlays.gentoo.org/proj/php/browser/testing/migration/dev-php5/pecl-timezonedb
Comment 2 Rodrigo Severo 2007-10-27 14:53:50 UTC
(In reply to comment #1)
> In PHP overlay now.
> 
> http://overlays.gentoo.org/proj/php/browser/testing/migration/dev-php5/pecl-timezonedb

First of all, thanks for your prompt reply.

I have just installed in one machine. Seems to be working perfectly.
Comment 3 Rodrigo Severo 2007-10-29 15:21:40 UTC
When should pecl-timezonedb be included in regular portage? I don't know what process is used in situations like this.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-10-29 15:24:38 UTC
(In reply to comment #3)
> When should pecl-timezonedb be included in regular portage?

Already there.

*pecl-timezonedb-2007.8 (28 Oct 2007)

  28 Oct 2007; Markus Ullmann <jokey@gentoo.org> +metadata.xml,
  +pecl-timezonedb-2007.8.ebuild:
  Initial import from php project overlay
Comment 5 Rodrigo Severo 2007-10-29 16:31:27 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > When should pecl-timezonedb be included in regular portage?
> 
> Already there.
> 
> *pecl-timezonedb-2007.8 (28 Oct 2007)

Great! Thanks.