Add dates to /blog page tiles
The dates come in timestamp format from the api, so need to convert to a more readable version
with a dateconvert function
note the reason for the publish_date vs publishedAt check is because publishedAt is a field generated
by strapi when you publish a post. Afaik there wasnt a way force this value with the legacy timestamps
when I transfered the webflow data. The webflow timestamps were also in a diffent format from what strapi uses
Details
Details
- Reviewers
bytesofman - Group Reviewers
Restricted Project - Commits
- rABCbce9dc9a67e5: [e.cash] Add dates to blog
npm run test to check new tests
preview the site and check the dates look good on the blog page
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- ecash-blog-dates
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 24279 Build 48168: Build Diff Build 48167: arc lint + arc unit
Event Timeline
web/e.cash/data/blog.js | ||
---|---|---|
58 | formatTimestamp is a better name, tho open to other active names dateConvert is kinda vague. what are we converting the date to? |
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (preview-e.cash) passed.
Preview is available at http://54.39.19.73:41688 for the next 60 minutes.