Skip to content
Snippets Groups Projects
Commit 34833bb3 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: dolibarr_print_date

parent c4dd8502
No related branches found
No related tags found
No related merge requests found
......@@ -513,7 +513,7 @@ function dolibarr_print_date($time,$format='')
if (! $time) return '';
// Analyse de la date
if (eregi('^([0-9]+)\-([0-9]+)\-([0-9]+)\s?([0-9]+)?:?([0-9]+)?',$time,$reg))
if (eregi('^([0-9]+)\-([0-9]+)\-([0-9]+) ?([0-9]+)?:?([0-9]+)?',$time,$reg))
{
// Date est au format 'YYYY-MM-DD' ou 'YYYY-MM-DD HH:MM:SS'
$syear = $reg[1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment