Commit 8748b35d authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#2669 - ISPConig template generator creates date columns with wrong format

parent a86d74a3
......@@ -664,6 +664,9 @@ class db extends mysqli
case 'blob':
return 'blob';
break;
case 'date':
return 'date';
break;
}
}
......
......@@ -271,9 +271,9 @@ class tform_tpl_generator {
$defaultValue = 'NULL';
break;
case 'DATE':
$type = 'int64';
$type = 'date';
$typevalue = '';
$defaultValue = ($field["default"] != '')?$field["default"]:'0';
$defaultValue = ($field["default"] != '')?$field["default"]:'0000-00-00';
break;
}
......
Markdown is supported
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