How to update timezonedb in PHP (updating timezones info)?

前端 未结 4 1325
梦谈多话
梦谈多话 2020-12-03 18:07

phpinfo() shows our system to be using \"\"Olson\" Timezone Database Version 2010.3\". I think that is now out of date, but can\'t locate an authoritative locatio

4条回答
  •  时光取名叫无心
    2020-12-03 19:00

    as far as I know the Timezone DB (TDB) is distributed within PHP itself. Because of that the timezone DB becomes obsolete after some time and you should either update PHP or the TDB to reflect the changes in TDB.

    There's a PECL extension which releases new TDB packages which you can download and install and use them in your old PHP installations.

    I'm not aware there's a way to update TDB directly in PHP. The PECL extension was created to target this issue.

提交回复
热议问题