Commit ab435866 authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractBuildForm.php: if a datetime / timestamp has the string...

AbstractBuildForm.php: if a datetime / timestamp has the string 'CURRENT_TIMESTAMP' it will be replaced by the current date/time.
parent 73e12a16
......@@ -2656,6 +2656,9 @@ abstract class AbstractBuildForm {
$this->adjustMaxLength($formElement);
$showTime = ($formElement[FE_TYPE] == 'time' || $formElement[FE_TYPE] == 'datetime') ? 1 : 0;
if($value=='CURRENT_TIMESTAMP') {
$value=date('Y-m-d H:i:s');
}
$value = Support::convertDateTime($value, $formElement[FE_DATE_FORMAT], $formElement[FE_SHOW_ZERO], $showTime, $formElement[FE_SHOW_SECONDS]);
$tmpPattern = $formElement[FE_CHECK_PATTERN];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment