From 27969b0d8e4c09c9168abf75ebabbb48897e3f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Thu, 17 Apr 2014 00:07:50 +0200 Subject: [PATCH] suche --- app/Controller/Component/MiconwareSessionComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/Component/MiconwareSessionComponent.php b/app/Controller/Component/MiconwareSessionComponent.php index 8e99d91..c96fd38 100755 --- a/app/Controller/Component/MiconwareSessionComponent.php +++ b/app/Controller/Component/MiconwareSessionComponent.php @@ -80,7 +80,7 @@ class MiconwareSessionComponent extends Component { 'conditions' => array('User.mail' => $mail,'User.is_active'=>true) )); if($this->validate_password($password,$users['User']['password']) and !$this->isLoggedin()){ - $result = $this->User->saveField('last_login', date(DATE_ATOM)); + $result = $this->User->saveField('last_login', date("Y-m-d H:i:s")); if($result) $result = $this->Session->write('user',$users['User']['id']); return $result;