Skip to content

Commit

Permalink
Fix post date - refs BT#12324
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Mar 22, 2017
1 parent e91d3dc commit 883d71f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions main/inc/lib/blog.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,11 +1001,7 @@ public static function getPosts($blog_id, $filter = '1=1', $max_number_of_posts
'title' => stripslashes($blog_post['title']),
'extract' => api_get_short_text_from_html(stripslashes($blog_post['full_text']), 400),
'content' => stripslashes($blog_post['full_text']),
'post_date' => api_convert_and_format_date(
$blog_post['date_creation'],
null,
date_default_timezone_get()
),
'post_date' => api_convert_and_format_date($blog_post['date_creation']),
'n_comments' => $blog_post_comments['number_of_comments'],
'files' => $fileArray,
'score_ranking' => $scoreRanking
Expand Down Expand Up @@ -1128,7 +1124,7 @@ public static function getSinglePost($blog_id, $post_id)
'title' => stripslashes($blog_post['title']),
'extract' => api_get_short_text_from_html(stripslashes($blog_post['full_text']), 400),
'content' => $post_text,
'post_date' => api_convert_and_format_date($blog_post['date_creation'], null, date_default_timezone_get()),
'post_date' => api_convert_and_format_date($blog_post['date_creation']),
'n_comments' => $blog_post_comments['number_of_comments'],
'files' => $fileArray,
'id_task' => $task_id,
Expand Down Expand Up @@ -1255,11 +1251,7 @@ public static function getThreadedComments(
'title' => $comment['title'],
'content' => $comment_text,
'id_author' => $comment['author_id'],
'comment_date' => api_convert_and_format_date(
$comment['date_creation'],
null,
date_default_timezone_get()
),
'comment_date' => api_convert_and_format_date($comment['date_creation']),
'id_blog' => $comment['blog_id'],
'id_post' => $comment['post_id'],
'id_task' => $comment['task_id'],
Expand Down

0 comments on commit 883d71f

Please sign in to comment.