summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-06-17 13:38:59 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-06-17 13:38:59 -0700
commit48fa06f34fe3098fd820b97d9d28c9f27f8591de (patch)
tree8ab8033347faf9095d7e28f8f992139db197358f /core/java/android
parentb87e6138d169e5fd23b964056431e2c357323fd2 (diff)
parentf6a671394ca3d269835d5f5b882b46f9539e9a96 (diff)
am f6a67139: Merge "Correct Date format for el_GR, sv_SE and tr_TR locales"
* commit 'f6a671394ca3d269835d5f5b882b46f9539e9a96': Correct Date format for el_GR, sv_SE and tr_TR locales
Diffstat (limited to 'core/java/android')
-rwxr-xr-x[-rw-r--r--]core/java/android/text/format/DateFormat.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/core/java/android/text/format/DateFormat.java b/core/java/android/text/format/DateFormat.java
index 36b7d16e49a1..d1f35dd9503e 100644..100755
--- a/core/java/android/text/format/DateFormat.java
+++ b/core/java/android/text/format/DateFormat.java
@@ -280,13 +280,9 @@ public class DateFormat {
}
}
- /*
- * The setting is not set; use the default.
- * We use a resource string here instead of just DateFormat.SHORT
- * so that we get a four-digit year instead a two-digit year.
- */
- value = context.getString(R.string.numeric_date_format);
- return value;
+ // The setting is not set; use the locale's default.
+ LocaleData d = LocaleData.get(context.getResources().getConfiguration().locale);
+ return d.shortDateFormat4;
}
/**