fix: [behavior:notifyAdmins] Fixed typo in date serialization

refacto/CRUDComponent
Sami Mokaddem 2023-12-12 09:02:43 +01:00
parent 338386729f
commit 96e4aceb28
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class NotifyAdminsBehavior extends Behavior
} else if (is_object($fieldValue)) {
switch (get_class($fieldValue)) {
case 'Cake\I18n\FrozenTime':
return $fieldValue->i18nFormat('yyyy-mm-dd HH:mm:ss');
return $fieldValue->i18nFormat('yyyy-MM-dd HH:mm:ss');
}
} else {
return strval($fieldValue);