Correction regex
This commit is contained in:
parent
09ca372bce
commit
b0beed7fb6
@ -2258,7 +2258,7 @@ function numero_semaine($time)
|
|||||||
{
|
{
|
||||||
$stime = strftime( '%Y-%m-%d',$time);
|
$stime = strftime( '%Y-%m-%d',$time);
|
||||||
|
|
||||||
if (eregi('^([0-9]+)\-([0-9]+)\-([0-9]+)\s?([0-9]+)?:?([0-9]+)?',$stime,$reg))
|
if (eregi('^([0-9]+)\-([0-9]+)\-([0-9]+) ?([0-9]+)?:?([0-9]+)?',$stime,$reg))
|
||||||
{
|
{
|
||||||
// Date est au format 'YYYY-MM-DD' ou 'YYYY-MM-DD HH:MM:SS'
|
// Date est au format 'YYYY-MM-DD' ou 'YYYY-MM-DD HH:MM:SS'
|
||||||
$annee = $reg[1];
|
$annee = $reg[1];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user