From 88b969524b3867622a9598fd59570fcae4b6db07 Mon Sep 17 00:00:00 2001 From: Lorenz Nickel Date: Fri, 30 Jun 2023 08:59:08 +0000 Subject: Clarify that formatDateRange accepts a timezone id. It is not very clear what this parameter is supposed to be unless someone follows the code further. Timezones also have a display name for example, which would also make sense as a parameter here. Change-Id: I7e1092ba02cedf6ae819fd97fa6e317f3231c616 --- core/java/android/text/format/DateUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/text/format/DateUtils.java b/core/java/android/text/format/DateUtils.java index 511c9746c84c..518a5498d6ed 100644 --- a/core/java/android/text/format/DateUtils.java +++ b/core/java/android/text/format/DateUtils.java @@ -743,7 +743,7 @@ public class DateUtils * @param startMillis the start time in UTC milliseconds * @param endMillis the end time in UTC milliseconds * @param flags a bit mask of options - * @param timeZone the time zone to compute the string in. Use null for local + * @param timeZone the id of the time zone to compute the string in. Use null for local * or if the FORMAT_UTC flag is being used. * * @return the formatter with the formatted date/time range appended to the string buffer. -- cgit v1.2.3-59-g8ed1b