0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/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 Fixed AMP style compliance (#13912) 2021-12-21 21:32:53 -05: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
public Revert "Used neutral background colors for default header styles" 2021-12-17 04:15:37 +01:00
services Handled default product to use first paid product 2022-01-17 22:59:34 +05:30
src/cards Applied default box sizing to all cards 2021-12-17 15:28:35 +01:00
views 🎨 Improved copy on member email unsubscribe page 2022-01-05 15:27:13 +00:00
web Updated caching policy for /members/.well-known 2022-01-14 14:04:23 +02:00