protected function parseTime($value, $format, $locale = null, $exactMatch = false)
    {
        // Check if the date is in the correct format
        if (!Zend_Date::isDate($value, $format)) {
            return null;
        }

        // Parse the value
        $valueObject = new Zend_Date($value, $format, $locale);

        // For exact matches, ensure the value preserves formatting after conversion
        if ($exactMatch && ($value !== $valueObject->get($format))) {
            return null;
        } else {
            return $valueObject;
        }
    }