Need to show the time in local time (Brisbane) instead of UTC: –
$datetime = new DateTime;
$otherTZ = new DateTimeZone('Australia/Brisbane');
$datetime->setTimezone($otherTZ);
echo "Last Update" . $datetime->format('Y-m-d H:i:s') . "<br /><br />";
Need to show the time in local time (Brisbane) instead of UTC: – $datetime = new DateTime; $otherTZ = new DateTimeZone(‘Australia/Brisbane’); $datetime->setTimezone($otherTZ); echo “Last Update” . $datetime->format(‘Y-m-d H:i:s’) . “<br /><br />”;
Need to show the time in local time (Brisbane) instead of UTC: –
$datetime = new DateTime;
$otherTZ = new DateTimeZone('Australia/Brisbane');
$datetime->setTimezone($otherTZ);
echo "Last Update" . $datetime->format('Y-m-d H:i:s') . "<br /><br />";
Subscribe to get the latest posts sent to your email.
Leave a comment