FurkOk FurkOk - 3 months ago 22
PHP Question

How to change my timezone with gmdate method? PHP

i wanna change my timezone to GMT+3. But i dont know how to do it. I dont wanna change gmdate method btw. Thanks already.

$meetingstamp = strtotime($meeting_date . " UTC");
$dtstart= gmdate("Ymd\THis\Z",$meetingstamp);
$dtend= gmdate("Ymd\THis\Z",$meetingstamp+$meeting_duration);
$todaystamp = gmdate("Ymd\THis\Z");

Answer

The answer:

$meetingstamp = strtotime($meeting_date); 
$dtstart = gmdate("Ymd\THis\Z", $meetingstamp);
$dtend = gmdate("Ymd\THis\Z", $meetingstamp+$meeting_duration);
$todaystamp = gmdate("Ymd\THis\Z",strtotime("+3 hours"));
Comments