In posts.js, the age of a post is calculated by comparing the property timestamp of two posts, but that's not the value we'll actually be getting while making an API call. Instead, the value will be under a property called created_at and will look something like "2019-11-23T19:55:08.208Z". This can probably be handled using Javascript's Date object, so it will just need to be reworked.
In posts.js, the age of a post is calculated by comparing the property
timestamp
of two posts, but that's not the value we'll actually be getting while making an API call. Instead, the value will be under a property calledcreated_at
and will look something like"2019-11-23T19:55:08.208Z"
. This can probably be handled using Javascript's Date object, so it will just need to be reworked.