How to check the php.ini file and set the timezone accordingly.
<?php
// Checks the php.ini file, if return false, set a default timezone
if (!@ini_get('date.timezone'))
date_default_timezone_set('Atlantic/Azores');
?>
A list with supported timezones can be found here!
Mail this!
- Comments (0)
- PingBacks (0)
- TrackBacks (0)


» Latest comments