diff --git a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/auth/MarshalledCredentials.java b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/auth/MarshalledCredentials.java index 5737dbc4aa..e9d6173c46 100644 --- a/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/auth/MarshalledCredentials.java +++ b/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/auth/MarshalledCredentials.java @@ -227,7 +227,7 @@ public String toString() { // session/role credentials may have an expiry and role ARN. return String.format("session credentials, expiry %s; %s(%s)", getExpirationDateTime() - .map(x -> x.format(DateTimeFormatter.ISO_DATE)) + .map(x -> x.format(DateTimeFormatter.ISO_DATE_TIME)) .orElse("unknown"), (isNotEmpty(roleARN) ? ("role \"" + roleARN + "\" ")