Fix feed date
Fix redirect to new item
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section side top>
|
||||
<q-item-label caption>{{timeAgo(history.date)}}</q-item-label>
|
||||
<q-item-label caption>{{timeAgo(history.date || history.created)}}</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@ -63,7 +63,7 @@ export default {
|
||||
if (hoursDiff < 24) {
|
||||
return `il y a ${hoursDiff} heure(s)`
|
||||
} else {
|
||||
let daysDiff = date.getDateDiff(date2, date1)
|
||||
let daysDiff = date.getDateDiff(date2, date1, 'days')
|
||||
return `il y a ${daysDiff} jour(s)`
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user