Changeset 3123
- Timestamp:
- Feb 4, 2009, 3:42:17 AM (16 years ago)
- Location:
- branches/2.0
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/comments.php
r3046 r3123 140 140 ON i.id = c.image_id 141 141 WHERE validated = \'false\' 142 ORDER BY c.date DESC 142 ORDER BY c.date DESC 143 143 ;'; 144 144 $result = pwg_query($query); … … 161 161 'TN_SRC' => $thumb, 162 162 'AUTHOR' => trigger_event('render_comment_author', $row['author']), 163 'DATE' => format_date($row['date'], 'mysql_datetime',true),163 'DATE' => format_date($row['date'], true), 164 164 'CONTENT' => trigger_event('render_comment_content',$row['content']) 165 165 ) -
branches/2.0/admin/intro.php
r3046 r3123 222 222 sprintf( 223 223 l10n('first element added on %s'), 224 format_date($first_date , 'mysql_datetime')224 format_date($first_date) 225 225 ) 226 226 ) -
branches/2.0/admin/picture_modify.php
r3046 r3123 242 242 'FILESIZE' => @$row['filesize'].' KB', 243 243 244 'REGISTRATION_DATE' => 245 format_date($row['date_available'], 'mysql_datetime', false), 244 'REGISTRATION_DATE' => format_date($row['date_available']), 246 245 247 246 'AUTHOR' => isset($_POST['author']) ? $_POST['author'] : @$row['author'], -
branches/2.0/comments.php
r3046 r3123 365 365 'ALT' => $name, 366 366 'AUTHOR' => trigger_event('render_comment_author', $author), 367 'DATE'=>format_date($comment['date'], 'mysql_datetime',true),367 'DATE'=>format_date($comment['date'], true), 368 368 'CONTENT'=>trigger_event('render_comment_content',$comment['content']), 369 369 ); -
branches/2.0/feed.php
r3046 r3123 123 123 { 124 124 $item = new FeedItem(); 125 $item->title = sprintf(l10n('New on %s'), 126 format_date($dbnow, 'mysql_datetime') ); 125 $item->title = sprintf(l10n('New on %s'), format_date($dbnow) ); 127 126 $item->link = $conf['gallery_url']; 128 127 -
branches/2.0/include/functions.inc.php
r3118 r3123 570 570 571 571 // format_date returns a formatted date for display. The date given in 572 // argument can be a unixdate (number of seconds since the 01.01.1970) or an 573 // american format (2003-09-15). By option, you can show the time. The 574 // output is internationalized. 572 // argument must be an american format (2003-09-15). By option, you can show the time. 573 // The output is internationalized. 575 574 // 576 // format_date( "2003-09-15", 'us',true ) -> "Monday 15 September 2003 21:52"577 function format_date($date, $ type = 'us', $show_time = false)575 // format_date( "2003-09-15", true ) -> "Monday 15 September 2003 21:52" 576 function format_date($date, $show_time = false) 578 577 { 579 578 global $lang; -
branches/2.0/include/picture_comment.inc.php
r3046 r3123 131 131 while ($row = mysql_fetch_array($result)) 132 132 { 133 $tpl_comment = 133 $tpl_comment = 134 134 array( 135 135 'AUTHOR' => trigger_event('render_comment_author', … … 138 138 : $row['author']), 139 139 140 'DATE' => format_date( 141 $row['date'], 142 'mysql_datetime', 143 true), 140 'DATE' => format_date( $row['date'], true), 144 141 145 142 'CONTENT' => trigger_event('render_comment_content',$row['content']), -
branches/2.0/picture.php
r3046 r3123 814 814 815 815 // date of availability 816 $val = format_date($picture['current']['date_available'] , 'mysql_datetime');816 $val = format_date($picture['current']['date_available']); 817 817 $url = make_index_url( 818 818 array(
Note: See TracChangeset
for help on using the changeset viewer.