Update the timestamp label into uppercase and increase vertical offset
Update the timestamp label into uppercase based on the different locale and increase the vertical offset from UX review feedback Test: presubmit Change-Id: Ie5e86967e36773f1f8c4f628501514b1a7fd22f5
This commit is contained in:
@@ -142,11 +142,11 @@ public final class ConvertUtils {
|
||||
public static String utcToLocalTimeHour(
|
||||
final Context context, final long timestamp, final boolean is24HourFormat) {
|
||||
final Locale locale = getLocale(context);
|
||||
// e.g. for 12-hour format: 9 pm
|
||||
// e.g. for 12-hour format: 9 PM
|
||||
// e.g. for 24-hour format: 09:00
|
||||
final String skeleton = is24HourFormat ? "HHm" : "ha";
|
||||
final String pattern = DateFormat.getBestDateTimePattern(locale, skeleton);
|
||||
return DateFormat.format(pattern, timestamp).toString().toLowerCase(locale);
|
||||
return DateFormat.format(pattern, timestamp).toString();
|
||||
}
|
||||
|
||||
/** Converts UTC timestamp to local time day of week data. */
|
||||
|
Reference in New Issue
Block a user