Convert server timezone to a different timezone in CakePHP


Glad I found this. 🙂
This doesn’t require you to change the timezone setup of your server.

In your app/config/bootstrap.php file, add this line:
putenv(‘TZ=MST’);
I got it from here Click here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: