Ver código fonte

Fixe erreur report import proweb "dateEntree"

stany.ferer 2 anos atrás
pai
commit
44518e93e4
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      core/class/proweb.class.php

+ 5 - 1
core/class/proweb.class.php

@@ -139,7 +139,11 @@ class proweb
 
     private static function archiveExcelValuesDate(string $_string)
     {
-        return (!isset($_string) or $_string == "00-00-0000") ? "N/A" : $_string;
+        if(!isset($_string) or $_string == "00-00-0000"){
+            return "N/A";
+        } else {
+            return str_replace(" 00:00:00", "", $_string);
+        }
     }
 
     private static function archiveExcelValuesSexe(string $_string)