diff --git a/js/about/preferences.js b/js/about/preferences.js index 515f8127eb3..9cd22297284 100644 --- a/js/about/preferences.js +++ b/js/about/preferences.js @@ -22,6 +22,7 @@ const getSetting = require('../settings').getSetting const SortableTable = require('../components/sortableTable') const Button = require('../components/button') const searchProviders = require('../data/searchProviders') +const moment = require('moment') const adblock = appConfig.resourceNames.ADBLOCK const cookieblock = appConfig.resourceNames.COOKIEBLOCK @@ -825,9 +826,10 @@ class PaymentsTab extends ImmutableComponent { if (!ledgerData.get('reconcileStamp')) { return null } - let nextReconcileDate = formattedDateFromTimestamp(ledgerData.get('reconcileStamp')) - let l10nDataArgs = { - reconcileDate: nextReconcileDate + const timestamp = ledgerData.get('reconcileStamp') + const nextReconcileDateRelative = formattedTimeFromNow(timestamp) + const l10nDataArgs = { + reconcileDate: nextReconcileDateRelative } return