PHP date() & time() return incorrect time:
date()
time()
When date.timezone = \"Europe/Riga\" the time returned by date() was <
date.timezone = \"Europe/Riga\"
You have to set date.timezone in php.ini and restart your server http://php.net/manual/en/timezones.php