PHP datetime() returning one hour less time after including wordpress – fix?

Solution:

Perhaps there are timezone setting somewhere in wp-load.php

http://www.php.net/manual/en/function.date-default-timezone-set.php

You may declare timezone in your script or change timezone somewhere in included script (quess it is wordpress).