Posted By

AzizLight on 12/10/09


Tagged

php timezone DateTime php53


Versions (?)

Set default timezone for date/time functions (php 5.3 compatibility requirement)


 / Published in: PHP
 

URL: http://philsturgeon.co.uk/news/2009/12/CodeIgniter-on-PHP-5.3

Set the default timezone for date/time functions to use if none is set on the server.

  1. if (!ini_get('date.timezone'))
  2. {
  3. date_default_timezone_set('GMT');
  4. }

Report this snippet  

You need to login to post a comment.