I am using date() function it getting the date and time as per my given format but the time its showing me is 4 hours forward than my current local machine time: This is my code
echo date("Y-m-d h:i:s", time());
Its showing me : 2009-10-28 08:47:42 Where as it should Disply : 2009-10-28 04:47:42
Any Idea whats wrong with this and why its showing different time.