The only setting I am aware of is the one in core.php. If you need to
set any other timezone related variables, you can do so in config/
bootstrap.php.

You can also manually set them with the time helper.

$this->Time->format('Y-m-d', time(), false, +5);

On May 7, 12:31 am, Dilip Godhani <[email protected]> wrote:
> Can any One Help me?
>
> How i Change TImezone in cakephp ?
>
> I use following way but it is not work?
>
> 1 .You can set the time zone in /app/config/core.php:
> date_default_timezone_set('YourTimeZone')
>
> 2 .edit: try add this in your app/config/bootstrap.php
> putenv('TZ=YourTimeZone');
>
> Can Any One tell me step by step to change time zone,
>
> I want to indian time zone ,it is GMT+5:30....!
>
> And My server time zone is US time zone
>
> Thanks
> Dilip Godhaniwww.dilip.godhani.co.cc
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to