Q:

String date to time in PHP - strtotime "loses hours"

I have the behavior which is cofusing me:
1. I got rom request some string date "02.07.2014".
2. Trying to convert it to timestamp 
strtotime($search->date_from)

it returns me 1404244800. Assumig that my bug is here, I'm trying to check what I get on this url http://www.onlineconversion.com/unix_time.htm and found the Tue, 01 Jul 2014 20:00:00 GMT
It's almost what I need , excluding that 4 hours are lost: it's very bad for me and unexpected.

A:

On top of php script, put 
date_default_timezone_set("YourTimeZone");

YourTimeZone can be one of this: 
    Timezone

