Answer the question
In order to leave comments, you need to log in
Why is time wrong in PHP?
I wrote down my time zone in php.ini, I output: 12:04
At that time it really was 12 hours, but the minutes differed there and were fixed: they did not advance beyond four minutes. Now, at seven o'clock in the evening, displays 14:04. What to do and why time slowed down in hours and stopped in minutes?
Answer the question
In order to leave comments, you need to log in
Minutes are i, not m. m is the month. You are shown the current hour and current month.
Try to shove at the beginning of the code, it always helps me:
date_default_timezone_set('Europe/Moscow');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question