From c0dcd4eb66ca5fd8ca0fb6409fe279a1971c8a27 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Mon, 16 Aug 2021 12:46:57 +0500 Subject: [PATCH] removed warning regarding locale definition, instead updating the definition --- src/utils/time.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/time.js b/src/utils/time.js index 44eb797f6..97bcc2ee2 100644 --- a/src/utils/time.js +++ b/src/utils/time.js @@ -54,7 +54,7 @@ export const getTimeFromNowNative = (d) => { }; export const setMomentLocale = () => { - moment.locale('en', { + moment.updateLocale('en', { relativeTime: { future: 'in %s', past: '%s',