Changeset 28995


Ignore:
Timestamp:
Jul 7, 2014, 11:36:23 PM (10 years ago)
Author:
rvelices
Message:

feature 2807: fix bugs on comments format_date

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/comments.php

    r28587 r28995  
    5858    include_once( PHPWG_ROOT_PATH .'include/functions_comment.inc.php' );
    5959    check_input_parameter('comments', $_POST, true, PATTERN_ID);
    60    
     60
    6161    if (isset($_POST['validate']))
    6262    {
     
    187187        )
    188188     );
    189   if (empty($row['author_id'])) 
     189  if (empty($row['author_id']))
    190190  {
    191191    $author_name = $row['author'];
     
    202202      'TN_SRC' => $thumb,
    203203      'AUTHOR' => trigger_change('render_comment_author', $author_name),
    204       'DATE' => format_date($row['date'], true),
     204      'DATE' => format_date($row['date']).' '.substr($row['date'],11,4),
    205205      'CONTENT' => trigger_change('render_comment_content',$row['content']),
    206206      'IS_PENDING' => ('false' == $row['validated']),
  • trunk/comments.php

    r28587 r28995  
    486486      'AUTHOR' => trigger_change('render_comment_author', $comment['author']),
    487487      'WEBSITE_URL' => $comment['website_url'],
    488       'DATE'=>format_date($comment['date'], true),
     488      'DATE'=>format_date($comment['date']).' '.substr($comment['date'],11,4),
    489489      'CONTENT'=>trigger_change('render_comment_content',$comment['content']),
    490490      );
  • trunk/include/picture_comment.inc.php

    r28764 r28995  
    183183          'ID' => $row['id'],
    184184          'AUTHOR' => trigger_change('render_comment_author', $row['author']),
    185           'DATE' => format_date($row['date'], true),
     185          'DATE' => format_date($row['date']).' '.substr($row['date'],11,4),
    186186          'CONTENT' => trigger_change('render_comment_content',$row['content']),
    187187          'WEBSITE_URL' => $row['website_url'],
Note: See TracChangeset for help on using the changeset viewer.