Home php Problem with Date_Default_TimeZone_Set

Problem with Date_Default_TimeZone_Set




Server time is different from the desired me. Looms from Moscow for 4 hours. Used date_default_timezone_set ('Europe / Moscow'); But still the time is not correct – lags behind an hour. The same with date_default_timezone_set ('msd') and with date_default_timezone_set ('msk')

How can I definitely correctly set the server time?

Answer 1, Authority 100%


date_default_timezone_set ('etc / gmt + 3')

GMT + 3 indicator (Meridiana astronomical time) can be varied.


Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions