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

前端 未结 4 1328
梦谈多话
梦谈多话 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 18:47

    It's better just to update your PHP version (specially, if you're wanting to update it on a windows machine, otherwise you have to compile the extension yourself) because as far as i remember the extension isn't Windows-Ready only unix/linux - so if you want to do it on windows you will have to compile it yourself using the VC6 OR VC9 compiler).

    So, if you can update your PHP version that would be the fastest solution (it was atleast for me), ofcourse PHP may not have the latest timezone db info but i had to resolve a issue with the timezone db and it was fixed in the later version of PHP that i had. If you're doing it for unix/linux you might as well try the PECL extension i think that might be easier & faster for you then.

提交回复
热议问题