Merge "Move DateFormat.zeroPad() back to upstream."

This commit is contained in:
Jeff Sharkey
2020-12-03 02:40:51 +00:00
committed by Android (Google) Code Review

View File

@@ -698,7 +698,7 @@ public class DateFormat {
}
private static String zeroPad(int inValue, int inMinDigits) {
return TextUtils.formatSimple("%0" + inMinDigits + "d", inValue);
return String.format(Locale.getDefault(), "%0" + inMinDigits + "d", inValue);
}
/**