G
G
Grabonovich2020-04-02 17:27:20
PHP
Grabonovich, 2020-04-02 17:27:20

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

2 answer(s)
S
Sergei Iamskoi, 2020-04-02
@grabonovich

Minutes are i, not m. m is the month. You are shown the current hour and current month.

#
#yamynginx, 2020-04-02
@muxui

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 question

Ask a Question

731 491 924 answers to any question