Changeset 6669 for branches/2.1/include/functions_notification.inc.php
- Timestamp:
- Jul 6, 2010, 10:11:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/functions_notification.inc.php
r6663 r6669 80 80 if (!empty($end)) 81 81 { 82 $query .= ' 82 $query .= ' 83 83 AND c.validation_date <= \''.$end.'\''; 84 84 } … … 95 95 } 96 96 if (!empty($end)) 97 { 97 { 98 98 $query .= ' AND date <= \''.$end.'\''; 99 99 } … … 620 620 621 621 $title = l10n_dec('%d new image', '%d new images', $date_detail['nb_elements']); 622 $title .= ' ('.$lang['month'][ (int)$exploded_date['tm_mon']].' '.$exploded_date['tm_mday'].')';622 $title .= ' ('.$lang['month'][1+$exploded_date['tm_mon']].' '.$exploded_date['tm_mday'].')'; 623 623 624 624 return $title; 625 625 } 626 626 627 if(!function_exists("strptime")) 628 { 629 function strptime($date, $fmt) 630 { 631 if ($fmt != '%Y-%m-%d %H:%M:%S') 632 die('Invalid strptime format '.$fmt); 633 list($y,$m,$d,$H,$M,$S) = preg_split('/[-: ]/', $date); 634 $res = localtime( mktime($H,$M,$S,$m,$d,$y), true ); 635 return $res; 636 } 637 } 627 638 ?>
Note: See TracChangeset
for help on using the changeset viewer.