mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
6a8092b239
commit
3cb33ee23b
1 changed files with 1 additions and 1 deletions
|
@ -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}";
|
||||
|
|
Loading…
Add table
Reference in a new issue