lib/Utils/DateTimeUtils.php
private static function parseTimeZone(string $timeZone): array
    {
        $parts = explode('/', $timeZone);

        if (count($parts) > 2) {
            return [$parts[0], $parts[1] . ' / ' . $parts[2]];
        }

        if (count($parts) > 1) {
            return [$parts[0], $parts[1]];
        }

        return ['Other', $parts[0]];
    }
private static function parseTimeZone(string $timeZone): array
    {
        $parts = explode('/', $timeZone);

        if (count($parts) > 2) {
            return [$parts[0], $parts[1] . ' / ' . $parts[2]];
        }

        if (count($parts) > 1) {
            return [$parts[0], $parts[1]];
        }

        return ['Other', $parts[0]];
    }
private static function parseTimeZone ( string $ timeZone ) : array { $ parts = explode ( '/' , $ timeZone ) ; if ( count ( $ parts ) > 2 ) { return [ $ parts [ 0 ] , $ parts [ 1 ] . ' / ' . $ parts [ 2 ] ] ; } if ( count ( $ parts ) > 1 ) { return [ $ parts [ 0 ] , $ parts [ 1 ] ] ; } return [ 'Other' , $ parts [ 0 ] ] ; }
Returns the array with human readable region and timezone name for the provided
timezone identifier.
Returns the array with human readable region and timezone name for the provided timezone identifier .