casbloem / vue-luxon

Easy use of datetime with Luxon in Vue
https://npmjs.com/package/vue-luxon
72 stars 8 forks source link

Fix format dfh #11

Closed kevincoenegrachts closed 5 years ago

kevincoenegrachts commented 5 years ago

Currently the format_dfh would return 'just now' as it would only check for the first item in the duration array (this defaults to year). If the time ago was less than 1 year it would show just now instead.