mattmccray / liquid.js

JavaScript port of Tobias Luetke's Liquid template engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strftime doesn't respect en-GB locale

petewalker opened this issue · comments

When you setup your locales, you assign the en-US the en locale by reference:

Date.ext.locales['en-US'] = Date.ext.locales.en;

You need to clone the object instead, as the changes you make are affecting the en-GB locale.
e.g.

Date.ext.locales['en-US'] = JSON.parse(JSON.stringify(Date.ext.locales.en));