mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-21 06:52:06 +01:00
Update php.ini
Set a default value for "date.timezone" to "UTC" as I noticed its unset by default and breaks logs and some CMS which needs this to log accurate times unless people setup a custom local value or manually set it. This should ensure that this is always set to something to prevent the below. ``` root@server:~# for phpver in $(ls -1 /usr/local/lsws/ |grep lsphp | sed 's/lsphp//g') ; do echo ""; echo "LSPHP $phpver" ; /usr/local/lsws/lsphp$phpver/bin/php -i |grep -Ei 'date.timezone' && echo "" ; done LSPHP 70 date.timezone => no value => no value LSPHP 71 date.timezone => no value => no value LSPHP 72 date.timezone => no value => no value LSPHP 73 date.timezone => no value => no value LSPHP 74 date.timezone => no value => no value root@server:~# ```
This commit is contained in:
@@ -887,6 +887,7 @@ cli_server.color = On
|
||||
; Defines the default timezone used by the date functions
|
||||
; http://php.net/date.timezone
|
||||
;date.timezone =
|
||||
date.timezone = UTC
|
||||
|
||||
; http://php.net/date.default-latitude
|
||||
;date.default_latitude = 31.7667
|
||||
|
||||
Reference in New Issue
Block a user