fix: [behavior:notifyAdmins] Fixed typo in date serialization
parent
338386729f
commit
96e4aceb28
|
@ -322,7 +322,7 @@ class NotifyAdminsBehavior extends Behavior
|
||||||
} else if (is_object($fieldValue)) {
|
} else if (is_object($fieldValue)) {
|
||||||
switch (get_class($fieldValue)) {
|
switch (get_class($fieldValue)) {
|
||||||
case 'Cake\I18n\FrozenTime':
|
case 'Cake\I18n\FrozenTime':
|
||||||
return $fieldValue->i18nFormat('yyyy-mm-dd HH:mm:ss');
|
return $fieldValue->i18nFormat('yyyy-MM-dd HH:mm:ss');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return strval($fieldValue);
|
return strval($fieldValue);
|
||||||
|
|
Loading…
Reference in New Issue