CakePHP Change Default Timezone Set



Set timezone in App/Config/bootstrap.php (Cakephp 2.6+)
Set timezone in config/bootstrap.php (Cakephp 3)

1
2
3
4
5
6
7
8
<?php
/*
 * Set server timezone to UTC. You can change it to another timezone of your
 * choice but using UTC makes time calculations / conversions easier.
 * Check http://php.net/manual/en/timezones.php for list of valid timezone strings.
 */
date_default_timezone_set('Asia/Manila');
?>

Check http://php.net/manual/en/timezones.php for list of valid timezone strings.

Comments

Popular posts from this blog

CakePHP 4: Firebase Cloud Messaging Component in CakePHP for Push Notification

CakePHP 4 : Using Component inside Command ( Shell )

LIMIT SSH ACCESS BY COUNTRY