From 2d0bb249a8da90f225999e85e83ebdc583a87756 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 14 Nov 2011 09:24:06 +0000 Subject: [PATCH] * don't use default locale --- source/net/sourceforge/filebot/web/Date.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/web/Date.java b/source/net/sourceforge/filebot/web/Date.java index 37b991b1..5e0f9446 100644 --- a/source/net/sourceforge/filebot/web/Date.java +++ b/source/net/sourceforge/filebot/web/Date.java @@ -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 }