adding fix for cleanUpFields

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4635 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-03-19 21:15:54 +00:00
parent 6a8092b239
commit 3cb33ee23b

View file

@ -926,7 +926,7 @@ class Controller extends Object {
$newDate = null;
if ('datetime' == $field['type'] && $useNewDate) {
$newDate = "{$_year}-{$_month}-{$_day}:{$_hour}:{$_min}:{$_sec}";
} else if ('date' == $field['type'] && $useNewDate)) {
} else if ('date' == $field['type'] && $useNewDate) {
$newDate = "{$_year}-{$_month}-{$_day}";
} else if ('time' == $field['type'] && $useNewDate) {
$newDate = "{$_hour}:{$_min}:{$_sec}";