Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
8748b35d
Commit
8748b35d
authored
Feb 15, 2014
by
Till Brehm
Browse files
Fixed: FS#2669 - ISPConig template generator creates date columns with wrong format
parent
a86d74a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/db_mysql.inc.php
View file @
8748b35d
...
...
@@ -664,6 +664,9 @@ class db extends mysqli
case
'blob'
:
return
'blob'
;
break
;
case
'date'
:
return
'date'
;
break
;
}
}
...
...
interface/lib/classes/tform_tpl_generator.inc.php
View file @
8748b35d
...
...
@@ -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"
]
:
'0
000-00-00
'
;
break
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment