Merge pull request #444 from kubabrecka/fix_chinese_dates_js

fix js dates in chinese
This commit is contained in:
Robin Ward 2013-03-13 06:51:05 -07:00
commit e899af4bf0

View File

@ -32,5 +32,5 @@ Date.addLocale('cs', {
}
});
// set the current date locale
Date.setLocale(I18n.locale);
// set the current date locale, replace underscore with dash to make zh_CN work
Date.setLocale(I18n.locale.replace("_","-"));