0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/unit/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
..
test_tpl
asset.test.js 🐛 Fixed broken assets for theme/design preview 2021-11-03 11:20:04 +01:00
author.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
authors.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
body_class.test.js
cancel_link.test.js
concat.test.js
content.test.js
date.test.js Added timezone and locale to the options of the date helper (#13892) 2022-01-19 14:43:53 +00:00
encode.test.js
excerpt.test.js
facebook_url.test.js
foreach.test.js
get.test.js Supported restricting limit="all" in get helper (#13903) 2021-12-16 13:59:39 +02:00
ghost_foot.test.js
ghost_head.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
has.test.js
img_url.test.js
is.test.js
lang.test.js
link.test.js
link_class.test.js
match.test.js Improved match helper tests 2021-10-15 09:51:00 +01:00
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 Moved locale testing out of casper fixture (#13850) 2021-12-06 15:11:54 +00:00
tags.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
title.test.js
twitter_url.test.js
url.test.js Fixed the tests from the previous commit 2021-12-02 10:48:46 +01:00