date_default_timezone_set('Europe/Moscow'); $STARTTIME = date("mdy H:i:s"); echo $STARTTIME; die; 

That kind of thing brings: 04-26-12 09:47:45

But at 8:47. Can you please tell me how to treat?

Debugging on my computer (Denver).

  • Locale to rule? (For cancellation of summer / winter time) If I do not confuse, Denver is some kind of reincarnation of the Apache under Windows. And where does the time zone come from, I have no idea. - alexlz
  • @alexlz, Denver - this is terribly crappy Apache / PHP / MySQL kotorovsky assembly for those who have not mastered to install on their own. Although in fairness it should be noted that the Apache is uncorrupted there. - karmadro4

1 answer 1

In Denver, the old version of PHP, upgrade PHP version or install another build, for example, Winginx

http://winginx.ru

  • Previously, everything worked. It started most likely after I turned off "Automatic daylight saving time" - now I put a tick, time jumped an hour ahead. Then he turned it back an hour, and the correct time began to appear. The root of the problem is not clear. What to do when the clock starts to be translated in October is the second question. - Nikoole
  • The root of the problem is that the old version of PHP implemented the amendment for summer / winter time, after the cancellation of the transfer of time, this was fixed in the next update. If you have never updated PHP in Denver, then you have a very old version of PHP. - Alshabalin
  • one
    Yeah. This kind of mutants. - alexlz