Hello everyone!
I would like to inform you about a good opportunity to work with a
reliable company. Toptal (www.toptal.com) is currently looking for PHP
developers who are familiar with CakePHP and are able to work with EST time
zone. This project requires full-time work, therefore
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
dilip.godh...@gmail.com 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
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
Thanks David, I appreciate the help.
I looked in the time helper and did not see what I needed, but I took
the advice of tacking on 3 hours to the timestamp and it is working
now.
Again, Thanks.
On Dec 26, 12:05 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I'm not sure if this is the best
Hello,
I have my webserver in Los Angeles, however I am living in New
Jersey. Is there some way I can make cake set the timezone to Eastern
Standard Time instead of Pacific Standard Time? This way, all
timestamps I put into the database are of my timezone.
Thanks.
I'm not sure if this is the best answer, but you can always add 3
hours to the timestamp before you display/store it. also, you might
want to check out the time helper: http://api.cakephp.org/time_8php-source.html
It may have some useful functions for this.
On Dec 26, 7:28 am, Robert Sosinski
, squidliberty [EMAIL PROTECTED] wrote:
I live in the south-eastern US and I'm storing timestamps in my
database. I need date() to reflect my time zone when viewing this
data. Without access to php.ini, how can I do this for CakePHP?
Ive tried adding putenv(TZ = America/New_York); and
ini_set(date.timezone
Hi Brother
Thanks for reply.
But can you show me how to do it. i can't figure out..
Thanks
Andy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Hi brother
Thank you guys, i have found a solutions.
i chage the date.timezone = Asia/Kuala_Lumpur in the php.ini
For those dont know the php.ini path, you can use phpinfo(); to have it
Thanks
--~--~-~--~~~---~--~~
You received this message because you are
If you don't have access to php.ini, use the following code somewhere
in your application:
?php
ini_set('date.timezone','Asia/Kuala_Lumpur');
?
Same goes for my other post with the putenv function.
For a list of supported timezones, visit [1].
--
[1]
Hi brother,
I am Andy from Malaysia and just a begineer to cakePHP.
I having a problem that when i try to save a Created/Modified date (By
Cake's Default) in to the database, i will get 8 hours delay of the
time, can i know how to solve it
Thanks
Best wishes,
Andy
Do you know if your server's time is UTC?One way you can do it is log all times as UTC and then only convert them to local time upon display based on either a user's timezone or a timzone variable set in your cake app.
I have some basics going for timezones like this, but maybe somebody has a more
Andy,
Cake's 'created' and 'modified' magic uses the PHP date() function. The
Best Practice for dates is to store all dates interally in UTC/GMT, and
apply an offset on viewing. If you would prefer not to do this, check
out:
http://uk2.php.net/manual/en/function.date-default-timezone-set.php
Oh dear, crossed posts..
I have some basics going for timezones like this, but maybe somebody
has a more robust solution?
Pear::Date? [1]
Chris
[1] http://pear.php.net/package/Date
--
Chris Lamb, Cambridgeshire, UK [EMAIL PROTECTED]
WWW: www.chris-lamb.co.uk
I've used this before (example is US Central Time) in my own
applications, not in Cake PHP.
?php
putenv(TZ=America/Chicago);
?
Ryan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this
16 matches
Mail list logo