diff options
Diffstat (limited to 'admin/WebConsole/includes/InvFecha.php')
-rw-r--r-- | admin/WebConsole/includes/InvFecha.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/InvFecha.php b/admin/WebConsole/includes/InvFecha.php index e4de8b83..3a82faff 100644 --- a/admin/WebConsole/includes/InvFecha.php +++ b/admin/WebConsole/includes/InvFecha.php @@ -9,7 +9,7 @@ function InvFecha($fecha){ if ($fecha=="1970-01-01")return(""); $auxexplode=explode(" ",$fecha); - list($anno_p,$mes_p,$dia_p)=explode("[/-]",$auxexplode[0]); + list($anno_p,$mes_p,$dia_p)=explode("-",str_replace("/","-",$auxexplode[0])); $fecha_p=$dia_p.'-'.$mes_p.'-'.$anno_p; return($fecha_p); } @@ -34,4 +34,4 @@ function metefechaDB($fecha){ function HoraValida($hora){ if ($hora=="00:00:00")return(""); } -?> + |