[#1697] Date format() java extension should honor current locale
Moved code out of for loop
Using Lang.getLocale(...) methods instead of new Locale(...)
Merge pull request #632 from mkurz/lighthouse-1697-patch

[#1697] Date format() java extension should honor current locale