source/Application/Controller/Admin/AdminListController.php
protected function _convertTime($fullDate)
    {
        $date = substr($fullDate, 0, 10);
        $convertedObject = new \OxidEsales\Eshop\Core\Field();
        $convertedObject->setValue($date);
        \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBDate($convertedObject, true);
        $stringModifier = getStr();

        // looking for time field
        $time = substr($fullDate, 11);
        if ($stringModifier->preg_match("/([0-9]{2}):([0-9]{2}) ([AP]{1}[M]{1})$/", $time, $timeMatches)) {
            if ($timeMatches[3] == "PM") {
                $intVal = (int)$timeMatches[1];
                if ($intVal < 13) {
                    $time = ($intVal + 12) . ":" . $timeMatches[2];
                }
            } else {
                $time = $timeMatches[1] . ":" . $timeMatches[2];
            }
        } elseif ($stringModifier->preg_match("/([0-9]{2}) ([AP]{1}[M]{1})$/", $time, $timeMatches)) {
            if ($timeMatches[2] == "PM") {
                $intVal = (int)$timeMatches[1];
                if ($intVal < 13) {
                    $time = ($intVal + 12);
                }
            } else {
                $time = $timeMatches[1];
            }
        } else {
            $time = str_replace(".", ":", $time);
        }

        return $convertedObject->value . " " . $time;
    }
protected function _convertTime($fullDate)
    {
        $date = substr($fullDate, 0, 10);
        $convertedObject = new \OxidEsales\Eshop\Core\Field();
        $convertedObject->setValue($date);
        \OxidEsales\Eshop\Core\Registry::getUtilsDate()->convertDBDate($convertedObject, true);
        $stringModifier = getStr();

        // looking for time field
        $time = substr($fullDate, 11);
        if ($stringModifier->preg_match("/([0-9]{2}):([0-9]{2}) ([AP]{1}[M]{1})$/", $time, $timeMatches)) {
            if ($timeMatches[3] == "PM") {
                $intVal = (int)$timeMatches[1];
                if ($intVal < 13) {
                    $time = ($intVal + 12) . ":" . $timeMatches[2];
                }
            } else {
                $time = $timeMatches[1] . ":" . $timeMatches[2];
            }
        } elseif ($stringModifier->preg_match("/([0-9]{2}) ([AP]{1}[M]{1})$/", $time, $timeMatches)) {
            if ($timeMatches[2] == "PM") {
                $intVal = (int)$timeMatches[1];
                if ($intVal < 13) {
                    $time = ($intVal + 12);
                }
            } else {
                $time = $timeMatches[1];
            }
        } else {
            $time = str_replace(".", ":", $time);
        }

        return $convertedObject->value . " " . $time;
    }
protected function _convertTime ( $ fullDate ) { $ date = substr ( $ fullDate , 0 , 10 ) ; $ convertedObject = new \ OxidEsales \ Eshop \ Core \ Field ( ) ; $ convertedObject -> setValue ( $ date ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsDate ( ) -> convertDBDate ( $ convertedObject , true ) ; $ stringModifier = getStr ( ) ; // looking for time field $ time = substr ( $ fullDate , 11 ) ; if ( $ stringModifier -> preg_match ( "/([0-9]{2}):([0-9]{2}) ([AP]{1}[M]{1})$/" , $ time , $ timeMatches ) ) { if ( $ timeMatches [ 3 ] == "PM" ) { $ intVal = ( int ) $ timeMatches [ 1 ] ; if ( $ intVal < 13 ) { $ time = ( $ intVal + 12 ) . ":" . $ timeMatches [ 2 ] ; } } else { $ time = $ timeMatches [ 1 ] . ":" . $ timeMatches [ 2 ] ; } } elseif ( $ stringModifier -> preg_match ( "/([0-9]{2}) ([AP]{1}[M]{1})$/" , $ time , $ timeMatches ) ) { if ( $ timeMatches [ 2 ] == "PM" ) { $ intVal = ( int ) $ timeMatches [ 1 ] ; if ( $ intVal < 13 ) { $ time = ( $ intVal + 12 ) ; } } else { $ time = $ timeMatches [ 1 ] ; } } else { $ time = str_replace ( "." , ":" , $ time ) ; } return $ convertedObject -> value . " " . $ time ; }
Converter for datetime field search. If not full time will be searched.

@param string $fullDate searched date

@return string
Converter for datetime field search . If not full time will be searched .