source/Core/UtilsDate.php
protected function _formatCorrectTimeValue($oObject, $sDateFormat, $sTimeFormat, $aDateMatches, $aTimeMatches, $aTFields, $aDFields)
    {
        // formatting correct time value
        $iTimestamp = @mktime(
            (int) $aTimeMatches[$aTFields[0]],
            (int) $aTimeMatches[$aTFields[1]],
            (int) $aTimeMatches[$aTFields[2]],
            (int) $aDateMatches[$aDFields[0]],
            (int) $aDateMatches[$aDFields[1]],
            (int) $aDateMatches[$aDFields[2]]
        );

        if ($oObject instanceof \OxidEsales\Eshop\Core\Field) {
            $oObject->setValue(trim(@date($sDateFormat . " " . $sTimeFormat, $iTimestamp)));
        } else {
            $oObject->value = trim(@date($sDateFormat . " " . $sTimeFormat, $iTimestamp));
        }

        // we should increase (decrease) field lenght
        $oObject->fldmax_length = strlen($oObject->value);
    }
protected function _formatCorrectTimeValue($oObject, $sDateFormat, $sTimeFormat, $aDateMatches, $aTimeMatches, $aTFields, $aDFields)
    {
        // formatting correct time value
        $iTimestamp = @mktime(
            (int) $aTimeMatches[$aTFields[0]],
            (int) $aTimeMatches[$aTFields[1]],
            (int) $aTimeMatches[$aTFields[2]],
            (int) $aDateMatches[$aDFields[0]],
            (int) $aDateMatches[$aDFields[1]],
            (int) $aDateMatches[$aDFields[2]]
        );

        if ($oObject instanceof \OxidEsales\Eshop\Core\Field) {
            $oObject->setValue(trim(@date($sDateFormat . " " . $sTimeFormat, $iTimestamp)));
        } else {
            $oObject->value = trim(@date($sDateFormat . " " . $sTimeFormat, $iTimestamp));
        }

        // we should increase (decrease) field lenght
        $oObject->fldmax_length = strlen($oObject->value);
    }
protected function _formatCorrectTimeValue ( $ oObject , $ sDateFormat , $ sTimeFormat , $ aDateMatches , $ aTimeMatches , $ aTFields , $ aDFields ) { // formatting correct time value $ iTimestamp = @ mktime ( ( int ) $ aTimeMatches [ $ aTFields [ 0 ] ] , ( int ) $ aTimeMatches [ $ aTFields [ 1 ] ] , ( int ) $ aTimeMatches [ $ aTFields [ 2 ] ] , ( int ) $ aDateMatches [ $ aDFields [ 0 ] ] , ( int ) $ aDateMatches [ $ aDFields [ 1 ] ] , ( int ) $ aDateMatches [ $ aDFields [ 2 ] ] ) ; if ( $ oObject instanceof \ OxidEsales \ Eshop \ Core \ Field ) { $ oObject -> setValue ( trim ( @ date ( $ sDateFormat . " " . $ sTimeFormat , $ iTimestamp ) ) ) ; } else { $ oObject -> value = trim ( @ date ( $ sDateFormat . " " . $ sTimeFormat , $ iTimestamp ) ) ; } // we should increase (decrease) field lenght $ oObject -> fldmax_length = strlen ( $ oObject -> value ) ; }
Formatting correct time value

@param object $oObject      data field object
@param string $sDateFormat  date format
@param string $sTimeFormat  time format
@param array  $aDateMatches new new date
@param array  $aTimeMatches new time
@param array  $aTFields     defines the time fields
@param array  $aDFields     defines the date fields
Formatting correct time value