Answer the question
In order to leave comments, you need to log in
Why is March 2013 one hour slower than March 2012 (PHP)?
Why does PHP show one hour less time in March 2013 than it did in March 2012?
The code for the calculation is simple:
echo strtotime('2012-03-01') - strtotime('2012-03-31')
Март 2012 = 2588400 секунд
Март 2013 = 2592000 секунд
Март 2014 = 2588400 секунд
Март 2015 = 2588400 секунд
Март 2016 = 2588400 секунд
Март 2017 = 2588400 секунд
Март 2018 = 2588400 секунд
Март 2019 = 2592000 секунд
Answer the question
In order to leave comments, you need to log in
The point is the transfer of summer time on the last Sunday of March (which we have canceled).
strtotime converts the time to unixtimestamp, adding 3600 or not, respectively.
Probably, in the selected time locale in 2013 and 2019, the transition to daylight saving time falls on March.
Personally, I'm fine. For all months, the result is 259200. Which, in principle, is correct.
php 5.4.9
Something tells me that the matter is in the ancient version of PHP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question