tags:

views:

159

answers:

2

How can I change the time zone in CakePHP? My application uses the Indian time zone but it is hosted on a US server which takes a US time zone. Can anyone tell me how I can change the time zone?

A: 

You can set the time zone in /app/config/core.php:

date_default_timezone_set('YourTimeZone')    //php5.3 is required

edit: try add this in your app/config/bootstrap.php

putenv('TZ=YourTimeZone');
SpawnCxy
also change that but it is not working..!
dilip
I try that also but not working now...!
dilip
A: 

Thanx a lot.. was looking for this..

any alternative.. my server runs on php 5.2.6

Harsha M V
You'll notice that this is the "Answers" section. This is not a forum ;) If you have a question create one. If you have the same problem, up vote the question and talk about it in the comments section.
Justin Johnson