LdapTools\AttributeConverter\ConvertGeneralizedTime::getTzOffsetForTimestamp PHP Method

getTzOffsetForTimestamp() protected method

Get the timezone offset that will be appended to the timestamp.
protected getTzOffsetForTimestamp ( string $tzOffset ) : string
$tzOffset string As given from the \DateTime object.
return string
    protected function getTzOffsetForTimestamp($tzOffset)
    {
        $tzOffset = str_replace(':', '', $tzOffset);
        return $tzOffset == '+0000' ? 'Z' : $tzOffset;
    }