0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/unit/frontend
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
..
apps Moved URL service to backend 2021-10-19 07:29:09 +13:00
helpers Added timezone and locale to the options of the date helper (#13892) 2022-01-19 14:43:53 +00:00
meta 🐛 Added fallback for meta_description to custom_excerpt (#13927) 2022-01-03 19:09:03 +00:00
services 🐛 Added pagination to sitemap.xml to avoid max 50,000 entries limit 2022-01-05 11:54:35 +01:00
web/middleware Updated servePublicFile to honor v= cache keys 2021-11-23 12:49:53 +00:00