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

Hi
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
lino
cb_ftmhacj1xnnbv1_kp
 
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

Hi

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.

Best
erich_hieden
 
Posts: 371
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