time stamp UTC

The place for general PHP questions and hints for PHP on IBM i

time stamp UTC

Postby cb_ftmhacj1xnnbv1_kp on 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: 1
Joined: Sun Jan 20, 2013 10:43 am

Re: time stamp UTC

Postby erich_hieden on 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.

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

Return to PHP Questions / Hints

Who is online

Users browsing this forum: No registered users and 1 guest