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

#1

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: https://docs.ghost.org/tutorials/localising-dates-in-ghost-themes/

0 Likes