1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* don't use default locale

This commit is contained in:
Reinhard Pointner 2011-11-14 09:24:06 +00:00
parent 848d795871
commit 2d0bb249a8

View File

@ -73,7 +73,12 @@ public class Date implements Serializable {
public String format(String pattern) { 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
} }