# Custom locale for date function in hbs files or parameter in date function

**URL:** <https://forum.ghost.org/t/custom-locale-for-date-function-in-hbs-files-or-parameter-in-date-function/6577>\
**Category:** Ideas\
**Created:** [April 1, 2019, 11:43am UTC](https://forum.ghost.org/t/custom-locale-for-date-function-in-hbs-files-or-parameter-in-date-function/6577 "2019-04-01T11:43:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![konstaner](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@konstaner](https://forum.ghost.org/u/konstaner)\
**Post date:** [April 1, 2019, 11:43am UTC](https://forum.ghost.org/t/custom-locale-for-date-function-in-hbs-files-or-parameter-in-date-function/6577/1 "2019-04-01T11:43:19Z")

</div>

I use “ru” locale for my blog, I set it in admin panel “Publication Language” option. Now I added rss/pulse.hbs file, where I use {{date format=“ddd, DD MMM YYYY HH:mm:ss ZZ”}}

The problem is that ghost puts date in “ru” locale, but my rss provider expect date in “en” locale. It will be good, if I could do something like this:  
{{date locale=“en” format=“ddd, DD MMM YYYY HH:mm:ss ZZ”}}

Temporaly, I solved the problem by setting “Publication language” to “en”, replace all english words in all hbs files and use this script for posts template: [Tutorials](https://docs.ghost.org/tutorials/localising-dates-in-ghost-themes/)
