MM-9612 Better handled out of order posts causing duplicate date headers (#1468)

This commit is contained in:
Harrison Healey 2018-03-05 13:21:10 +00:00 committed by Joram Wilander
parent 8981693474
commit 6cbc71b718

View file

@ -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;
}