PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
it does not display the correct time as my system on the localhost, and i have also check this with php4 , it is working fine in php4, please help thanks
Thats what i am trying to figure out, with php 4 it is working fine, i am currently using php5.1.2 , may be some settings in the php.ini file or something ...
on both systems, your server and localhost and post the output.
If it shows the dns name of your server and you don't want us to see it remove that part, it's irrelevant.
on both systems, your server and localhost and post the output.
If it shows the dns name of your server and you don't want us to see it remove that part, it's irrelevant.
Your server has another zoneinfo/timezone setting than localhost. EDT -0400 America/New_York means, America/New_York currently is UTC -4 hours.
UTC=13:11:03 <-> EDT=09:13:09
When daylight saving is over America/New_York has UTC -5 hours (EST)
aaronhall wrote:I think he was asking about a discrepancy between his system time and the time reported by PHP on that same system.
Yes it is what i am trying to ask , the same thing i have checked on the php4, it shows the correct time, may be there is an bug in the version php5.1.2 for the server timings (the server is on the same system i.e., localhost), any way the solution to the problem is to manually calculate the time-difference and adds them to show the needed time. thanks all