-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛] Can not change stickyHeaderFormatDate format, hardcoded value #2104
Comments
@hoang-van-nhat, thanks for reaching out. What should be the Japanese format? How is it different than |
@vanGalilea turns out it is dayjs format issue https://oss.issuehunt.io/r/iamkun/dayjs/issues/922 |
@hoang-van-nhat is the above working now for you? If yes, please feel free to close it. Thanks 😄 |
@khushal87 but there is no fix for the hardcoded format in the stream chat react native component, as in decribed above, it should have an optional props for receiving date format string |
🎉 This issue has been resolved in version 5.32.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hey, @hoang-van-nhat, you can follow our new global date formatting guide that is done using i18n translations to achieve this customization - https://getstream.io/chat/docs/sdk/reactnative/guides/date-time-formatting/. |
Issue
stream-chat-react-native/package/src/components/MessageList/MessageList.tsx
Line 928 in a983781
This value is for english format date only, for other language, for example, the formated value is 5月12, it leads to confusion because the right value is 5月12日, but I couldn't able to change it
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The format should have not hardcoded into the library, or has some ways to receive the format.
Offline support
Environment
Click To Expand
package.json
:react-native info
output:stream-chat-react-native
version you're using that has this issue:Additional context
Screenshots
Click To Expand
The text was updated successfully, but these errors were encountered: