On stock market application we found a bug that appears on day change minus time offset. i.e. for our case it happens on server time 00:00 to 02:00 where we're taking time GMT+2. php is returning wrong date values out of time stamp. for instance yesterday night around 01:15 php returned 28/08/2014 even if the actual date is 29/08/2014. later I found php always consider timestamp as GMT for date so while MySQL returning right date value out of timestamp, php doesn't. and because of that the bug is appearing for sometime.
I searched on internet about it. there's some mention of such behavior of php, but mostly they gave solution to change timezoen in php.ini. but that solution can't be used here.. Does anyone know the solution?