mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-04 16:35:08 -05:00
* don't use default locale
This commit is contained in:
parent
848d795871
commit
2d0bb249a8
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user