public function setTimezone($timezone)
    {
        if (is_string($timezone)) {
            $timezone = new DateTimeZone($timezone);
        }
        $this->dbTimezone = $timezone;

        return $this;
    }
public function setTimezone($timezone)
    {
        if (is_string($timezone)) {
            $timezone = new DateTimeZone($timezone);
        }
        $this->dbTimezone = $timezone;

        return $this;
    }
public function setTimezone ( $ timezone ) { if ( is_string ( $ timezone ) ) { $ timezone = new DateTimeZone ( $ timezone ) ; } $ this -> dbTimezone = $ timezone ; return $ this ; }
Set database timezone.

Specified timezone will be set for DateTime objects before generating
datetime string for saving to database. If `null` no timezone conversion
will be done.

@param string|\DateTimeZone|null $timezone Database timezone.
@return $this
Set database timezone .