From 6509f91846fc0ad36f4f2c71ed2ded73bf6f02d2 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Wed, 3 Apr 2024 00:18:06 +0200 Subject: [PATCH] display full month name in event section headers --- src/modules/events/useEventList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/events/useEventList.js b/src/modules/events/useEventList.js index 8a395a9..3b5b59b 100644 --- a/src/modules/events/useEventList.js +++ b/src/modules/events/useEventList.js @@ -9,7 +9,7 @@ moment.locale('nb'); const formatDate = (time) => { const m = moment(time); - return moment().year() === m.year() ? m.format('dddd D. MMM') : m.format('ll'); + return moment().year() === m.year() ? m.format('dddd D. MMMM') : m.format('ll'); }; /* Ref: https://medium.com/react-native-development/how-to-use-the-flatlist-component-react-native-basics-92c482816fe6 */