From 6cbc71b7183a3f0a0e7490f7d25ee7538f29528f Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 5 Mar 2018 13:21:10 +0000 Subject: [PATCH] MM-9612 Better handled out of order posts causing duplicate date headers (#1468) --- app/selectors/post_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/selectors/post_list.js b/app/selectors/post_list.js index 37c8a672c..07bb43d40 100644 --- a/app/selectors/post_list.js +++ b/app/selectors/post_list.js @@ -55,7 +55,7 @@ export function makePreparePostIdsForPostList() { const postDate = new Date(post.create_at); if (!lastDate || lastDate.toDateString() !== postDate.toDateString()) { - out.push(DATE_LINE + postDate.toDateString()); + out.push(DATE_LINE + postDate.toString()); lastDate = postDate; }