fix(journey): read a day kept meanwhile again to offer replace, date the phone row in the app language

This commit is contained in:
Maurice
2026-10-21 15:18:01 +02:00
parent 5116f7be2c
commit fbf6cd2840
3 changed files with 27 additions and 4 deletions
@@ -40,7 +40,7 @@ import MJourneyRecordingSheet from './MJourneyRecordingSheet'
*/
export default function MJourneyDetail({ journeyId, embedded = false }: JourneyDetailOptions = {}) {
const {
id, navigate, toast, t,
id, navigate, toast, t, locale,
current, loading,
canEditEntries, canEditJourney,
view, setView,
@@ -515,7 +515,7 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD
<MListRow
icon={Route}
label={t('journey.recording.takeOverDay', {
date: new Date(entries[activeIndex].entry_date + 'T00:00:00').toLocaleDateString(undefined, { day: 'numeric', month: 'long' }),
date: new Date(entries[activeIndex].entry_date + 'T00:00:00').toLocaleDateString(locale, { day: 'numeric', month: 'long' }),
})}
onClick={() => { setShowActionMenu(false); recordings.open(entries[activeIndex].entry_date) }}
/>