kieranbarnes Independent PHP, WordPress & CubeCart Programmer

[Snippet] Setting the timezone for PHP 5.3

Posted on January 25, 2012

Posted by kieran

PHP 5.3 requires a time zone to be set if you do any kind of date processing.

Simply set this in your php.ini

  1. // London, England, Europe
  2. date.timezone = "Europe/London"
  3. date.default_latitude = 51.500181
  4. date.default_longitude = -0.12619