mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
74b97e99cd
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). |
||
---|---|---|
.. | ||
test_tpl | ||
asset.test.js | ||
author.test.js | ||
authors.test.js | ||
body_class.test.js | ||
cancel_link.test.js | ||
concat.test.js | ||
content.test.js | ||
date.test.js | ||
encode.test.js | ||
excerpt.test.js | ||
facebook_url.test.js | ||
foreach.test.js | ||
get.test.js | ||
ghost_foot.test.js | ||
ghost_head.test.js | ||
has.test.js | ||
img_url.test.js | ||
is.test.js | ||
lang.test.js | ||
link.test.js | ||
link_class.test.js | ||
match.test.js | ||
meta_description.test.js | ||
meta_title.test.js | ||
navigation.test.js | ||
next_post.test.js | ||
page_url.test.js | ||
pagination.test.js | ||
plural.test.js | ||
post_class.test.js | ||
prev_post.test.js | ||
price.test.js | ||
raw.test.js | ||
reading_time.test.js | ||
t.test.js | ||
tags.test.js | ||
title.test.js | ||
twitter_url.test.js | ||
url.test.js |