1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix deprecation warning

moment.updateLocale will properly replace properties on an existing locale.
This commit is contained in:
yosmoc
2018-04-23 21:08:10 +02:00
parent 1f1ef1440e
commit 4a55f78a48

View File

@@ -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',