0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/frontend
Matt Hanley b4140d4310
Updated default format for date helper to locale-based date string (#12733)
refs https://github.com/TryGhost/Casper/pull/741
closes https://github.com/TryGhost/Team/issues/524

- Use a local-based format as the default format as suggested in https://github.com/TryGhost/Casper/pull/741
- reworked the helper to be easier to read and follow the different use cases
- introduced setting and resetting locale in tests via settingsCache and themei18n
- updated tests to cover more cases e.g. passing a date, this.published_at and no date
- added validation for user inputted dates because they could literally be anything

Co-authored-by: Hannah Wolfe <erisds@gmail.com>
2021-03-05 13:35:31 +00:00
..
apps Update AMP template with accent color if available 2021-03-04 14:22:37 -05:00
helpers Updated default format for date helper to locale-based date string (#12733) 2021-03-05 13:35:31 +00:00
meta Updated twitter/og structured data rules 2021-02-05 18:50:11 +13:00
services 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
views Updated unsubscribe copy 2019-11-26 11:03:14 +01:00