diff options
| author | kaiyiz <kaiyiz@codeaurora.org> | 2014-10-17 17:15:27 +0800 |
|---|---|---|
| committer | Xiaojing Zhang <zhangx@codeaurora.org> | 2014-11-04 20:33:08 -0800 |
| commit | 8944b8308ec22d496415c57dee36b5a6b9a0c752 (patch) | |
| tree | 772045d0464f33e7e5a650787cde50eebfe104de | |
| parent | 27963a6d3f9a8376059ec5c7a9f0de1024fa07f5 (diff) | |
| download | packages_apps_Contacts-8944b8308ec22d496415c57dee36b5a6b9a0c752.tar.gz packages_apps_Contacts-8944b8308ec22d496415c57dee36b5a6b9a0c752.tar.bz2 packages_apps_Contacts-8944b8308ec22d496415c57dee36b5a6b9a0c752.zip | |
Contacts: Use DateUtils to format the time stamps
DateUtils#formatDateTime always formats the time
stamps in 12-hour format.
Use DateUtils to format the time stamps according
to current time style.
CRs-Fixed:740108
Change-Id: I3921a743b0f0eeab8b7af341768c7e5e36583f93
| -rw-r--r-- | src/com/android/contacts/interactions/ContactInteractionUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/contacts/interactions/ContactInteractionUtil.java b/src/com/android/contacts/interactions/ContactInteractionUtil.java index 98d45ee0b..00ee10919 100644 --- a/src/com/android/contacts/interactions/ContactInteractionUtil.java +++ b/src/com/android/contacts/interactions/ContactInteractionUtil.java @@ -72,8 +72,8 @@ public class ContactInteractionUtil { // compareCalendar is initialized to today if (compareCalendarDayYear(interactionCalendar, compareCalendar)) { - return DateFormat.getTimeInstance(DateFormat.SHORT).format( - interactionCalendar.getTime()); + return DateUtils.formatDateTime(context, timestamp, + DateUtils.FORMAT_SHOW_TIME); } // Turn compareCalendar to yesterday |
