FIX: null valor in format

This commit is contained in:
2022-04-11 11:01:35 -04:00
parent 6995561e4f
commit eac6b7d197

View File

@ -55,6 +55,9 @@ function uf($date, $async = false) {
return (object) ['total' => 0];
}
function format($tipo, $valor, $format = null, $print = false) {
if ($valor === null) {
$valor = 0;
}
if (strtolower($tipo) == 'localdate') {
$d = \Carbon\Carbon::parse($valor);
$d->locale('es_ES');