public function convertToTimezone($strTimezoneIdentifier)
    {
        try {
            $dtzNewTimezone = new \DateTimeZone($strTimezoneIdentifier);
            $this->setTimezone($dtzNewTimezone);
        } catch (\Exception $objExc) {
        }
    }
public function convertToTimezone($strTimezoneIdentifier)
    {
        try {
            $dtzNewTimezone = new \DateTimeZone($strTimezoneIdentifier);
            $this->setTimezone($dtzNewTimezone);
        } catch (\Exception $objExc) {
        }
    }
public function convertToTimezone ( $ strTimezoneIdentifier ) { try { $ dtzNewTimezone = new \ DateTimeZone ( $ strTimezoneIdentifier ) ; $ this -> setTimezone ( $ dtzNewTimezone ) ; } catch ( \ Exception $ objExc ) { } }
Converts the current QDateTime object to a different TimeZone.

TimeZone should be passed in as a string-based identifier.

Note that this is different than the built-in QDateTime::setTimezone() method which expicitly
takes in a DateTimeZone object.  QDateTime::ConvertToTimezone allows you to specify any
string-based Timezone identifier.  If none is specified and/or if the specified timezone
is not a valid identifier, it will simply remain unchanged as opposed to throwing an exeception
or error.

@param string $strTimezoneIdentifier a string-based parameter specifying a timezone identifier (e.g. America/Los_Angeles)
@return void
Converts the current QDateTime object to a different TimeZone .