From 4a55f78a48cae32b3414f646d5469b5d9d2c039d Mon Sep 17 00:00:00 2001 From: yosmoc Date: Mon, 23 Apr 2018 21:08:10 +0200 Subject: [PATCH] fix deprecation warning moment.updateLocale will properly replace properties on an existing locale. --- browser/main/NoteList/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index e413c647..dedad209 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -916,7 +916,7 @@ class NoteList extends React.Component { if (note.isTrashed !== true || location.pathname === '/trashed') return true }) - moment.locale('en', { + moment.updateLocale('en', { relativeTime: { future: 'in %s', past: '%s ago',