Resources: SilverStripe

Ignoring system timezone

9 October 2013

I've been banging my head against the wall figuring out why my time-sensitive website isn't displaying the date and time correctly. I had ensured php.ini represented the correct timezone, but no luck. It turns out SilverStripe can manage it's own timezone setting (it seems to pick and choose when to overwrite the system). Crack open your _config.php file and add the following:

_config.php

date_default_timezone_set('Pacific/Auckland');

Tags: , , , ,

Let's work together