Subversion Repositories Applications.papyrus

Rev

Rev 1336 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1336 Rev 1630
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: ezmlm.php,v 1.5 2007-04-19 15:34:35 neiluj Exp $
2
// $Id: ezmlm.php,v 1.6 2007-10-01 15:54:54 alexandre_tb Exp $
3
//
3
//
4
// ezmlm.php - ezmlm-php v2.0
4
// ezmlm.php - ezmlm-php v2.0
5
// --------------------------------------------------------------
5
// --------------------------------------------------------------
6
// As the site that ezmlm-php was developed for grew, and grew
6
// As the site that ezmlm-php was developed for grew, and grew
7
// the old system used had to be bandaid fixed more, and more
7
// the old system used had to be bandaid fixed more, and more
Line 290... Line 290...
290
     *
290
     *
291
     * @return
291
     * @return
292
     */
292
     */
Line 293... Line 293...
293
    
293
    
294
    function date_francaise ($date_mail) {
294
    function date_francaise ($date_mail) {
295
        $date_mail = preg_replace ('/CEST/', '', $date_mail) ;
295
        $date_mail = preg_replace ('/\(?CEST\)?/', '', $date_mail) ;
296
        $numero_mois = date('m ', strtotime($date_mail)) - 1 ;
296
        $numero_mois = date('m ', strtotime($date_mail)) - 1 ;
297
        $date = date ('d ', strtotime($date_mail)).$GLOBALS['mois'][$numero_mois] ; // Le jour et le mois
297
        $date = date ('d ', strtotime($date_mail)).$GLOBALS['mois'][$numero_mois] ; // Le jour et le mois
298
        $date .= date(' Y ', strtotime($date_mail)) ; // l'année
298
        $date .= date(' Y ', strtotime($date_mail)) ; // l'année
299
        if (date('a', strtotime($date_mail)) == 'pm') {
299
        if (date('a', strtotime($date_mail)) == 'pm') {