janevalencia / nextjs-ssr-comments

Interactive Comment Sections developed using NextJS/TailwindCSS/Express-MongoDB by Jane Valencia
https://fem-comments-hucu-janevalencia.vercel.app/
2 stars 0 forks source link

[FE] Make use of db timestamp to dynamically track the time comment/reply being posted #36

Closed janevalencia closed 2 years ago

janevalencia commented 2 years ago

Description

Currently, the date in data sample is not using the actual timestamp. We need to use the actual timestamp and dynamically sort the comment based on the following requirement:

Technical Specification

Make use of momentjs to process the db timestamp.

Display it in format: MMM Do YYYY, H:mm example: Jan 22nd 2020, 16:00

Acceptance Criteria