// No-op. Timezone offsets are implementation-specific and should implement
// this method as needed.
} /**
* Get the timezone offset in seconds.
*
* @return int
* The offset, in seconds, for the timezone being used.
*/
public function getTimezoneOffset() { $timezone =
$this->
setupTimezone();
$offset = 0;
if ($timezone) { $dtz =
new \
DateTimeZone($timezone);
$dt =
new \
DateTime('now',
$dtz);
$offset =
$dtz->
getOffset($dt);
} return $offset;
}}