0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core
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
..
client@8f4c133520 Updated Admin to v4.32.3 2022-01-14 16:00:28 +00:00
frontend Added timezone and locale to the options of the date helper (#13892) 2022-01-19 14:43:53 +00:00
server Added three email delivery events to the member/event endpoint 2022-01-19 14:43:29 +01:00
shared Updated Portal to show free tier description and benefits 2022-01-17 23:26:58 +05:30
app.js Fixed express app stacking 2021-12-06 21:28:53 +13:00
boot.js Added library for extracting database information 2022-01-18 09:31:08 +00:00
bridge.js Added missing async/await calls 2021-11-23 17:24:50 +00:00