try{ $time = Date::create_from_string($score['updated_at'], "mysql"); $when = $time? Date::time_ago($time->get_timestamp()) : ''; }catch(Exception $e){ $when = ""; }
<strong>Notice:</strong> Input was not recognized by pattern. in APPPATH/classes/controller/api.php [190]: create_from_string<strong>Notice:</strong> Input was not recognized by pattern. in APPPATH/classes/controller/api.php [190]: create_from_string<strong>Notice:</strong> Input was not recognized by pattern. in APPPATH/classes/controller/api.php [190]: create_from_string
It looks like you're new here. If you want to get involved, click one of these buttons!