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:
WhatTheServer
2020-07-21 09:20:55 -04:00
committed by GitHub
parent e49338af5e
commit 4617167ac8

View File

@@ -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