[ISSUE-3348] LC: Fix moment.js deprecation warning

This commit is contained in:
leandroalemao
2019-01-24 11:16:31 +00:00
parent 4cc6a8c966
commit dfa11834e3

View File

@@ -4,7 +4,7 @@ Darkswarm.filter "date_in_words", ->
Darkswarm.filter "sensible_timeframe", (date_in_wordsFilter)->
(date) ->
if moment().add('days', 2) < moment(date)
if moment().add(2, 'days') < moment(date)
t 'orders_open'
else
t('closing') + date_in_wordsFilter(date)