2

Possible Duplicate:
One hour difference, but only for some dates

Why:

strtotime('2012-11-01 00:00:00') - strtotime('2012-10-01 00:00:00')

is returning:

2674800

When the right value is:

2678400

is missing one hour.

Community
  • 1
  • 1
moraga86
  • 61
  • 6

1 Answers1

11

Because your locale (as defined by date.timezone in php.ini) probably experienced a time change sometime in October, due to daylight savings time.

Michael Berkowski
  • 267,341
  • 46
  • 444
  • 390