Changeset 34429 in spip-zone


Ignore:
Timestamp:
Jan 13, 2010, 2:39:50 PM (10 years ago)
Author:
xdjuj@…
Message:

preg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/comptes/inc/formater.php

    r34236 r34429  
    66function formater_date_poursql($date){
    77        // On tolère différents séparateurs
    8         $date = ereg_replace("\.|/| ",'-',$date);
     8        $date = preg_replace("#\.|/| #i",'-',$date);
    99        list($jour,$mois,$annee) = explode('-',$date);
    1010        $date = $annee.'-'.$mois.'-'.$jour;
Note: See TracChangeset for help on using the changeset viewer.