HomePhabricator

[e.cash] Add dates to blog

Description

[e.cash] Add dates to blog

Summary:
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

Test Plan:
npm run test to check new tests
preview the site and check the dates look good on the blog page

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

Differential Revision: https://reviews.bitcoinabc.org/D14178

Details

Provenance
johnkuneyAuthored on Jul 1 2023, 23:02
johnkuneyPushed on Jul 1 2023, 23:02
Reviewer
Restricted Project
Differential Revision
D14178: [e.cash] Add dates to blog
Parents
rABC9aa2c2ed7d29: [ecash-herald] Remove useless info from prod logs
Branches
Unknown
Tags
Unknown