developer-job-simulation/javascript-crm

[Medium] Feature request: display dates in 24-hour time format

DataDrivenEngineer opened this issue · 2 comments

Difficulty

Medium

What you need to do

Read description of the issue below and try to fix it.

Hints

  1. Read issue description below carefully and ensure that you understand it
  2. Run the app and ensure that you can reproduce the issue. 'Reproducing issue' means that when you run the app locally, you see the same behavior as described in the issue.
  3. Begin by understanding what ISO 8601 format is. Here is a link to get you started: ISO 8601 – Effectively Communicate Dates and Times Internationally

Issue description

'Created At' column displays dates in ISO 8601 format, which is very hard for humans to read - see the image below:

unformatted-dates

Expected behavior

'Created At' column displays dates in 24-hour notation in the form hh:mm (for example 01:23), where hh (00 to 23) is the number of full hours that have passed since midnight, mm (00 to 59) is the number of full minutes that have passed since the last full hour.

Is the new format expected to be just in the form hh:mm or yyyy-mm-dd HH:mm?
For example converting 2021-04-27T03:41:56Z to

  1. 03:41
    or
  2. 2021-04-27 03:41