Is it possible in PHP to get the timezone offset for a given location? E.g. when given the location \"Sydney/Australia\" to get the timezone offset as \"+1100\". Bonus would be
To display a local date/time you can use the following, where 'Europe/Berlin' would be replaced with the user's timezone.
$date = new DateTime($value); $date->setTimezone(new DateTimeZone('Europe/Berlin')); echo $date->format('Y-m-d H:i:s');