ErrorException [ Warning ]: date() expects parameter 2 to be int, string given

APPPATH/classes/Satara.php [ 207 ]

202 	static function formata_data($data, $lang_sufix, $tipo)
203 	{
204 		switch ($tipo)
205 		{
206 		    case 'd-M-Y':
207 		        return date('d', $data) . '.' . substr(Satara::mes(date('m', $data), $lang_sufix),0,3) . '.' . date('Y', $data);
208 		    break;
209 		    case 'd-M':
210 		        return date('d', $data) . ' ' . substr(Satara::mes(date('m', $data), $lang_sufix),0,3);
211 		    break;
212 		}
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Satara.php [ 207 ] » date(arguments)

  3. APPPATH/views/conteudo/emfoco.php [ 38 ] » Satara::formata_data(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  6. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  7. APPPATH/views/template.php [ 5 ] » Kohana_View->__toString()

  8. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  9. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  10. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  11. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  12. {PHP internal call} » Kohana_Controller->execute()

  13. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)

  14. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  15. MODPATH/multilang/classes/Multilang/Request.php [ 195 ] » Kohana_Request_Client->execute(arguments)

  16. DOCROOT/index.php [ 118 ] » Multilang_Request->execute()

Environment