diff options
Diffstat (limited to 'app/assets/javascripts/vue_shared/mixins/timeago.js')
-rw-r--r-- | app/assets/javascripts/vue_shared/mixins/timeago.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/vue_shared/mixins/timeago.js b/app/assets/javascripts/vue_shared/mixins/timeago.js index 2a0256548a8..61e45fa5195 100644 --- a/app/assets/javascripts/vue_shared/mixins/timeago.js +++ b/app/assets/javascripts/vue_shared/mixins/timeago.js @@ -5,8 +5,8 @@ import { formatDate, getTimeago, timeagoLanguageCode } from '~/lib/utils/datetim */ export default { methods: { - timeFormatted(time) { - const timeago = getTimeago(); + timeFormatted(time, format) { + const timeago = getTimeago(format); return timeago.format(time, timeagoLanguageCode); }, |