In PHP 7.2, if I do this:

```
<?php
$dt = new DateTime('@1522680410', new DateTimeZone(date_default_timezone_get())); 
$tz_offset = $exp->getOffset();
?>

```

$tz\_offset always returns 0. However, if I set a date and not a UNIX timestamp (i.e., '2018-01-02' instead of '@1522680410') it shows the correct offset value.

Is there a way to have the timestamp return the timezone offset in one step like above?