* don't use default locale

This commit is contained in:
Reinhard Pointner 2011-11-14 09:24:06 +00:00
parent 848d795871
commit 2d0bb249a8
1 changed files with 6 additions and 1 deletions

View File

@ -73,7 +73,12 @@ public class Date implements Serializable {
public String format(String pattern) {
return new SimpleDateFormat(pattern).format(new GregorianCalendar(year, month - 1, day).getTime()); // Calendar months start at 0
return format(pattern, Locale.ROOT);
}
public String format(String pattern, Locale locale) {
return new SimpleDateFormat(pattern, locale).format(new GregorianCalendar(year, month - 1, day).getTime()); // Calendar months start at 0
}