package com.inepex.ineForm.server.util;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.inepex.ineFrame.shared.util.DateFormatter;

public class JavaDateFormatter implements DateFormatter {

	@Override
	public String format(String pattern, Date date) {
		return new SimpleDateFormat(pattern).format(date);
	}

	@Override
	public String format(String pattern, Long date) {
		return new SimpleDateFormat(pattern).format(new Date(date));
	}

}

@@ -96,16 +96,112 @@
 .Date;%0D%0A
+import java.util.Locale;%0D%0A%0D%0Aimport com.google.inject.Inject;%0D%0Aimport com.google.inject.Provider;
 %0D%0Aimport
@@ -248,16 +248,63 @@
 matter;%0D
+%0Aimport com.inepex.inei18n.shared.CurrentLang;%0D
 %0A%0D%0Apubli
@@ -355,24 +355,320 @@
 matter %7B%0D%0A%0D%0A
+%09private final Provider%3CCurrentLang%3E currentLangProv;%0D%0A%09%0D%0A%09@Inject%0D%0A%09public JavaDateFormatter(Provider%3CCurrentLang%3E currentLangProv) %7B%0D%0A%09%09super();%0D%0A%09%09this.currentLangProv = currentLangProv;%0D%0A%09%7D%0D%0A%0D%0A%09private Locale getLocale()%7B%0D%0A%09%09return new Locale(currentLangProv.get().getCurrentLang());%0D%0A%09%7D%0D%0A%09%0D%0A
 %09@Override%0D%0A
@@ -748,32 +748,45 @@
 teFormat(pattern
+, getLocale()
 ).format(date);%0D
@@ -790,16 +790,17 @@
 );%0D%0A%09%7D%0D%0A
+%09
 %0D%0A%09@Over
@@ -894,16 +894,29 @@
 (pattern
+, getLocale()
 ).format

use locale in dateformatter