0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/unit
Marat Vyshegorodtsev 74b97e99cd
Added timezone and locale to the options of the date helper (#13892)
fixes https://github.com/TryGhost/Ghost/issues/13832

The `date` handlebars helper has only one option currently — `format`. It assumes the locale and timezone from the `options.data.site` object which is not always desired behavior.

The helper sometimes is used, for example, in custom RSS template where we always need the `en-US` locale, not the one that we have configured for the website globally. This change makes the two options configurable, and defaults to the `options.data.site` object values, if not specified in the helper (keeps the backwards compatibility with the current behavior).
2022-01-19 14:43:53 +00:00
..
api Moved URL service to backend 2021-10-19 07:29:09 +13:00
frontend Added timezone and locale to the options of the date helper (#13892) 2022-01-19 14:43:53 +00:00
server 🐛 Fixed Offer Redemptions being over counted (#13988) 2022-01-18 17:56:47 +02:00
shared Introduced booting from fixture url cache in test environment 2021-11-22 21:56:32 +13:00