0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/frontend/helpers
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
..
tpl
asset.js
author.js
authors.js
body_class.js
cancel_link.js
concat.js
content.js
date.js Added timezone and locale to the options of the date helper (#13892) 2022-01-19 14:43:53 +00:00
encode.js
excerpt.js
facebook_url.js
foreach.js
get.js Supported restricting limit="all" in get helper (#13903) 2021-12-16 13:59:39 +02:00
ghost_foot.js
ghost_head.js 🐛 Fixed card scripts executing before DOM is parsed 2021-12-08 17:54:37 +02:00
has.js
img_url.js
is.js
lang.js
link.js
link_class.js
match.js
meta_description.js
meta_title.js
navigation.js
page_url.js
pagination.js
plural.js
post_class.js
prev_post.js
price.js
products.js
raw.js
reading_time.js
t.js
tags.js
title.js
twitter_url.js
url.js 🐛 Fixed malformed URLs crashing the url helper 2021-12-02 10:34:24 +01:00