EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

feat: Added Support for displaying the timestamp messages

Open dhairyashiil opened this issue 10 months ago • 1 comments

Brief Title

Added Support for displaying the timestamp messages

Acceptance Criteria fulfillment

  • [X] Added support for rendering timestamps in various formats like relative time ("5 minutes ago") or full date and time.
  • [X] Implemented flexible timestamp formatting options (e.g., short time, full date, long-form date with time).
  • [X] Ensured the TimestampElement correctly handles and displays timestamps based on the provided format.

Fixes #987

Video/Screenshots

https://github.com/user-attachments/assets/34863b13-1c22-43eb-8e08-a78cb6cf07c3

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval. Contributors are requested to replace <pr_number> with the actual PR number.

dhairyashiil avatar Feb 15 '25 12:02 dhairyashiil

Hey @Spiral-Memory , should we consider a different approach? Using Unix timestamps might be less user-friendly since users would need to convert their time into the correct format, which adds extra effort.

abirc8010 avatar Mar 01 '25 11:03 abirc8010