Skip to content

Commit 7f29a3d

Browse files
committed
refactor(posts): use dayjs in showEditDate
1 parent b8b287f commit 7f29a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Posts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ export default {
811811
.catch(() => $alertStore.error('Error changing thread title'))
812812
}
813813
const createPoll = () => console.log('createPoll')
814-
const showEditDate = (post) => (new Date(post.created_at) < new Date(post.updated_at))
814+
const showEditDate = (post) => dayjs(post.updated_at).isAfter(dayjs(post.created_at))
815815
const openPostsPurgePostModal = (post, postIndex) => {
816816
v.selectedPost = post
817817
v.selectedPostIndex = postIndex

0 commit comments

Comments
 (0)