X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=1d13e55c2bd43b3a51aa5414c8316dcab665c877;hb=99954e12900401c5c725e65bce28cc1711653e45;hp=4c3a3a4dcd199988d1c2b1b887f4626fa9890d60;hpb=a908244cc42019b6b7cbba260a21a0c3b804945b;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 4c3a3a4d..1d13e55c 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,12 @@ // http://sebsauvage.net/wiki/doku.php?id=php:shaarli // Licence: http://www.opensource.org/licenses/zlib-license.php // Requires: php 5.1.x (but autocomplete fields will only work if you have php 5.2.x) +// ----------------------------------------------------------------------------------------------- +// NEVER TRUST IN PHP.INI +// Some hosts do not define a default timezone in php.ini, +// so we have to do this for avoid the strict standard error. +date_default_timezone_set('UTC'); + // ----------------------------------------------------------------------------------------------- // Hardcoded parameter (These parameters can be overwritten by creating the file /config/options.php) $GLOBALS['config']['DATADIR'] = 'data'; // Data subdirectory