Skip to content
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

message timestamp title customization #2585

Closed
megantaylor opened this issue Dec 18, 2024 · 1 comment
Closed

message timestamp title customization #2585

megantaylor opened this issue Dec 18, 2024 · 1 comment
Labels
feature New capability

Comments

@megantaylor
Copy link

Motivation
A clear and concise description of what the problem/opportunity is. Ex. I'm always frustrated when [...]
When we hover on the message timestamp, we get an unfriendly title like 2024-08-17T03:14:39.777Z. It would be better if this title showed a user-friendly localized date time string like MMMM D, YYYY at h:mm A.

Proposed solution
A clear and concise description of what you want to happen.
Change the title in the <time/> element rendered by message timestamp to a user-friendly localized date time string.

Acceptance Criteria
A set of predefined requirements that must be met to mark a user story complete.
When a user hovers on the message timestamp, they see a localized date time string.

It would also be acceptable to be able to pass in a custom title.

@megantaylor megantaylor added the feature New capability label Dec 18, 2024
@MartinCupela
Copy link
Contributor

Hey @megantaylor , feel free to customize the behavior by providing your Timestamp component as a prop to Channel component. Feel free to get inspired from the default component and how it gets the human readable format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New capability
Projects
None yet
Development

No branches or pull requests

2 participants