dever %!s(int64=3) %!d(string=hai) anos
pai
achega
45e34ebdb8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/Applet.php

+ 4 - 0
src/Applet.php

@@ -15,6 +15,10 @@ class Applet extends Base
         $uid = $this->check();
         $user = Dever::load('passport/user-one', $uid);
 
+        if ($user && $user['birthday']) {
+            $user['birthday'] = date('Y-m-d', $user['birthday']);
+        }
+
         return $user;
     }