Automattic / newspack-theme

A theme for Newspack.
https://newspack.com
GNU General Public License v2.0
305 stars 66 forks source link

fix(homepage-posts): handle "time ago" format in HBP #2292

Closed adekbadek closed 6 months ago

adekbadek commented 6 months ago

All Submissions:

Changes proposed in this Pull Request:

Fixes a regression introduced in https://github.com/Automattic/newspack-blocks/pull/1662 – "time ago" format is not respected by the HPB with this changes. This PR fixed that.

How to test the changes in this Pull Request:

  1. Navigate to Customizer > Template Settings > Post Template and enable "Use "time ago" date format".
  2. Add a homepage post block to a page; make sure it has at least one post new enough to fall inside of the 'time ago' range (it can also be changed in the Customizer).
  3. Observe that the "time ago" format is respected by the HPB both in the editor and on the frontend

Other information:


matticbot commented 6 months ago

:tada: This PR is included in version 1.88.1-epic-ras-acc.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

matticbot commented 5 months ago

:tada: This PR is included in version 1.88.1-alpha.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

matticbot commented 5 months ago

:tada: This PR is included in version 1.88.2-alpha.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

matticbot commented 5 months ago

:tada: This PR is included in version 1.88.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: