I write some events on the server to the log and noticed that the number of each month is recorded incorrectly on the first day of each month. Back in the twenties of December 1 recorded. Here is the code:
date_default_timezone_set('Europe/Moscow'); $date = date('Ym-d'); $time = date('H:i:s'); file_put_contents("log.txt", $date."\t".$time, FILE_APPEND); Result:
2016-11-24 11:35:07 2016-12-01 01:22:42 2016-12-01 04:48:42 2016-11-25 22:03:59 ... 2016-11-30 19:13:23 2016-11-30 19:20:06 2016-12-06 08:16:38 2016-12-06 22:14:27 What could be the problem?