You are not logged in.

#1 2020-12-02 09:50:06

shams
Member
Registered: 2020-08-08
Posts: 23

Cannot set the time zone in php.ini?

In arch in /etc/php/php.ini  the time zone was set to "UTC" in changed it to the Asia/Kabul:

date.timezone=Asia/Kabul

and restart the httpd with systemctl but in phpinfo() still show the "UTC", i want to install the roundcubemail from source in the installer page also show this error:

date.timezone:  NOT OK(not set)

this is phpinfo():

date/time support 	enabled
timelib version 	2018.04
"Olson" Timezone Database Version 	2020.4
Timezone Database 	internal
Default timezone 	UTC 

Offline

#2 2020-12-02 12:33:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,815

Re: Cannot set the time zone in php.ini?

Have you tried separating with spaces ?

date.timezone = Asia/Kabul

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-12-03 02:17:06

shams
Member
Registered: 2020-08-08
Posts: 23

Re: Cannot set the time zone in php.ini?

Thanks for reply, finally after search for the problem from the google i find the solution some one put the date.timezone in the beginning of the php.ini file just under the  [PHP] and solve his problem, i also put the date.timezone just under the [PHP] in the beginning of the php.ini file and commented the other one uder the [Date] solved the problem.

Last edited by shams (2020-12-03 06:19:36)

Offline

Board footer

Powered by FluxBB