I installed a virtual machine with php, mysql, apache2.
Now when I write in the terminal : date
I get : Thu Dec 06:55:25 EET 2016
.
When I try to get the now date in php,
I write : error_log(print_r(new \DateTime('now'),true), 3, "/tmp/error.log");
And I get :
DateTime Object
(
[date] => 2016-12-01 06:56:33
[timezone_type] => 3
[timezone] => Europe/Bucharest
)
But now the hour is : 17:06
.
How can resolve this ? Please help me and sorry for my english.