GetStream/stream-chat-angular

Difference in the date pattern in the date separator and the message timestamp in the message list component

Volodymyr-Markov opened this issue ยท 2 comments

Hello
There is a difference in the date patterns in the date separator and the timestamp in the message-list.component.ts.
Screenshot 2024-02-23 at 16 39 23

I looked at the source code and it appears that the message.component.ts uses the parseDateTime method from date-parser.service.ts to display the timestamp, while the message-list.component.ts uses parseDate to display the date marker in the date separator.

Inconsistency detected on version:
"stream-chat": "8.14.4",
"stream-chat-angular": "4.47.0",
Also checked on the latest version - 4.59.2. This Inconsistency remained.

In this particular case, is it possible to use a parseDateTime method to have a single DD/MM/YYYY pattern to display the dates? To have consistency in date patterns.

Hi,

For newer messages, the date separator and the info under the message bubble will have different texts, see attached screenshot. However we shouldn't have the inconsistency in the date format, a fix is on the way for that.

It's also possible to provide your own date and date-time formatter functions: https://getstream.io/chat/docs/sdk/angular/services/DateParserService/#properties

Screenshot 2024-02-26 at 10 41 12

๐ŸŽ‰ This issue has been resolved in version 4.59.3 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€