Mircea Voivod
Mircea Voivod

Reputation: 721

PHP strtotime dilema

Can someone explain why this outputs true on my server?

date_default_timezone_set('Europe/Bucharest');    
var_dump( strtotime('29.03.2015 03:00', time()) ===  strtotime('29.03.2015 04:00', time()));

Can't get my head around it

Upvotes: 2

Views: 36

Answers (1)

Rizier123
Rizier123

Reputation: 59681

As I thought it's because of the time change to summertime as you can see here: http://www.timeanddate.com/time/change/romania/bucharest

So if it is 03:00 the time gets set 1h forward to 04:00

Upvotes: 6

Related Questions