OpenWrt Forum Archive

Topic: PHP5 Corrupt Timezone database

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi
I am trying to write some web pages using php and if I use the date function I get:

Timezone database is corrupt - this should *never* happen!

I am using the current trunk and installed via opkg the following:

uhttpd
php5
php5-cgi
php5-mod-session

phpinfo() works and pages are being rendered. I have a valid timezone in /etc/config/system and I have created a /etc/TZ file and also amended the date.timezone in /etc/php.ini. In all cases I have set this to UTC.

Any suggestions?

Gary

Install zoneinfo-core.

Yes, it works! Big THANKS jow!

Install zoneinfo-core and zoneinfo packages related to your region.
:-D

# opkg install zoneinfo-core zoneinfo-asia

//because jakarta is in asia

The discussion might have continued from here.