Skip to content

Commit 9a33f0c

Browse files
committed
fix: on chat date grouping with locale date format
1 parent a552325 commit 9a33f0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/screens/Mini/Conversation/components/Conversations.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const Conversations = ({
144144
},
145145
]}
146146
>
147-
{moment(separatorDate).format("YYYY, MMM DD")}
147+
{moment(separatorDate).format("L")}
148148
</BrandText>
149149
</View>
150150
);
@@ -167,8 +167,8 @@ export const Conversations = ({
167167
index < messages.length - 1 ? messages[index + 1] : undefined;
168168

169169
const separatorDate = previousMessage
170-
? moment(item.timestamp).format("DD/MM/YYYY") ===
171-
moment(previousMessage.timestamp).format("DD/MM/YYYY")
170+
? moment(item.timestamp).format("L") ===
171+
moment(previousMessage.timestamp).format("L")
172172
? false
173173
: item?.timestamp
174174
: item.timestamp;

0 commit comments

Comments
 (0)