time stamp UTC

The place for general PHP questions and hints for PHP on IBM i
Post Reply
Posts: 1
Joined: Sun Jan 20, 2013 10:43 am

time stamp UTC

Post by cb_ftmhacj1xnnbv1_kp » Sun Jan 20, 2013 10:49 am

I am a developer,I am currently facing an issue in php related with the time stamp in windows PC.The issue is that php always returns UTC time when using date(' Y-m-d H:i:s')
so that Iam not able to insert correct date time in database.when using in windows,it really differs from the real time
Thanks in advance

Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: time stamp UTC

Post by erich_hieden » Mon Jan 21, 2013 10:33 am


1. I think you are in the wrong subforum, this is IBM i specific.

2. Make sure your windows server has the correct time set.

3. Set date.timezone in php.ini to your wanted value.


Post Reply