The createdAt time is always mapping to 'just now' and not 10 mins ago, 1 day ago, etc.
Here are sample messages response from my api:
{
"id": "15",
"text": "Super USer test",
"createdAt": "2024-05-03T17:45:48.837Z",
"user": {
"id": "2",
"name": "[email protected]"
}
},
{
"id": "16",
"text": "Data entry TEst",
"createdAt": "2024-05-04T15:45:55.874Z",
"user": {
"id": "4",
"name": "[email protected]"
}
},
{
"id": "17",
"text": "Super User test",
"createdAt": "2024-05-05T11:47:07.884Z",
"user": {
"id": "3",
"name": "[email protected]"
}
},
Let me know if I'm missing anything or how the time ago function runs for createdAt field. Thanks!