diff options
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java index 2f9a8ddc17..09326d697f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, Robin Rosenberg + * Copyright (C) 2011, 2012 Robin Rosenberg * and other copyright owners as documented in the project's IP log. * * This program and the accompanying materials are made available @@ -144,10 +144,10 @@ public class GitDateFormatter { break; case LOCALE: case LOCALELOCAL: - Locale locale = SystemReader.getInstance().getLocale(); - dateTimeInstance = DateFormat.getDateTimeInstance( - DateFormat.DEFAULT, DateFormat.DEFAULT, locale); - dateTimeInstance2 = new SimpleDateFormat("Z", locale); + SystemReader systemReader = SystemReader.getInstance(); + dateTimeInstance = systemReader.getDateTimeInstance( + DateFormat.DEFAULT, DateFormat.DEFAULT); + dateTimeInstance2 = systemReader.getSimpleDateFormat("Z"); break; } } |