Ignore:
Timestamp:
Nov 9, 2008, 10:44:44 PM (15 years ago)
Author:
rub
Message:

Resolved issue 0000900: format_date function doesn't work when time is omitted with 'mysql_datetime' type

Continue correction of grum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r2790 r2856  
    602602      break;
    603603    }
     604    case 'mysql_date' :
     605    {
     606      preg_match('/^(\d{4})-(\d{2})-(\d{2})$/',
     607                 $date, $out);
     608      list($year,$month,$day) =
     609        array($out[1],$out[2],$out[3]);
     610      break;
     611    }
    604612  }
    605613  $formated_date = '';
Note: See TracChangeset for help on using the changeset viewer.