Closed PascalPixel closed 10 years ago
Thanks for the report, @Superpencil. I'm actually going to leave this as is and not add date_default_timezone_set()
to the example for this reason:
It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting ...
While adding date_default_timezone_set
will fix the issue, IMHO it's best practice to always set date.timezone
in php.ini
. Updating that setting and restarting your webserver will also resolve the issue, and I'd prefer to push developers in that direction.
FWIW, I use both techniques in my personal projects. I use date.timezone
in my php.ini
but I also set it in most apps since I don't trust servers I deploy on if I don't control them :smile:
Thanks for the detailed explanation! Makes perfect sense, and if people run into trouble they'll find this closed issue now :)
First time clean install of this repo:
Adding this to the index.php fixes it