I have a question. I try to use datetime in php. I did :
$now = new \DateTime();
When I print_r the $now
I have :
DateTime Object
(
[date] => 2016-12-01 05:55:01
[timezone_type] => 3
[timezone] => Europe/Helsinki
)
When I look at clock I have 16:05
. I need to set the timezone ? I want to use Bucharest timezone. How I can get the right date and hour ? Thx in advance
December 01, 2016 16:35
, and that's time in Bucharest now. – Catcall