fix(news): use correct date for posts

This commit is contained in:
Matteo Pagliazzi
2020-10-15 17:32:26 +02:00
parent 1d44bfe0cd
commit dcbc5da2ba

View File

@@ -100,7 +100,7 @@ export default {
}, },
getPostDate (post) { getPostDate (post) {
const format = this.user ? this.user.preferences.dateFormat.toUpperCase() : 'MM/DD/yyyy'; const format = this.user ? this.user.preferences.dateFormat.toUpperCase() : 'MM/DD/yyyy';
return moment(post.publishedDate).format(format); return moment(post.publishDate).format(format);
}, },
}, },
}; };