diff --git a/App.js b/App.js index f414028b6..9a635df3c 100644 --- a/App.js +++ b/App.js @@ -3,6 +3,9 @@ import * as Sentry from '@sentry/react-native'; import { SafeAreaProvider } from 'react-native-safe-area-context'; import { Provider } from 'react-redux'; import { RecoilRoot } from 'recoil'; +import dayjs from 'dayjs'; +import 'dayjs/locale/fr'; +import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'; import { PersistGate } from 'redux-persist/integration/react'; import { InteractionManager } from 'react-native'; import { persistor, store } from './src/redux/store'; @@ -14,6 +17,9 @@ import { ToastProvider } from './src/services/toast'; import './src/styles/theme'; import { hasMigratedFromAsyncStorage, migrateFromAsyncStorage } from './src/services/storage'; +dayjs.extend(isSameOrAfter); +dayjs.locale('fr'); + if (!__DEV__) { Sentry.init({ dsn: SENTRY_XXX }); } diff --git a/src/scenes/ConsoFollowUp/consoDuck.js b/src/scenes/ConsoFollowUp/consoDuck.js index 4036b85f9..ce6f085cd 100644 --- a/src/scenes/ConsoFollowUp/consoDuck.js +++ b/src/scenes/ConsoFollowUp/consoDuck.js @@ -68,16 +68,16 @@ const formatHtmlTable = (drinks, catalog) => {