public function convertTimezone(string $timezoneId) : TimezonedDateTime
    {
        return new TimezonedDateTime(
                (new \DateTimeImmutable('now', new \DateTimeZone($timezoneId)))
                        ->setTimestamp($this->dateTime->getTimestamp())
        );
    }
public function convertTimezone(string $timezoneId) : TimezonedDateTime
    {
        return new TimezonedDateTime(
                (new \DateTimeImmutable('now', new \DateTimeZone($timezoneId)))
                        ->setTimestamp($this->dateTime->getTimestamp())
        );
    }
public function convertTimezone ( string $ timezoneId ) : TimezonedDateTime { return new TimezonedDateTime ( ( new \ DateTimeImmutable ( 'now' , new \ DateTimeZone ( $ timezoneId ) ) ) -> setTimestamp ( $ this -> dateTime -> getTimestamp ( ) ) ) ; }
Returns the current date time according to the supplied timezone

@param string $timezoneId

@return TimezonedDateTime
Returns the current date time according to the supplied timezone