I want to add +4GMT to the below
<?php echo date("F j, Y, g:i a");?>
Or anything can help to add the current time and date
I want to add +4GMT to the below
<?php echo date("F j, Y, g:i a");?>
Or anything can help to add the current time and date
You can use time() to get the current time in seconds (UNIX) and add 3600*4.
echo date("F j, Y, g:i a", time()+3600*4);
you can try this and put timezone accordingly which is gmt +4
<?php
$dateTime = new DateTime();
$dateTime->setTimeZone(new DateTimeZone('America/Los_Angeles'));
return $dateTime->format('T');
?>