From 84199bf1725894fbdc7ee236e0c3d37f37324897 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Fri, 13 Sep 2024 16:27:39 +0200 Subject: [PATCH] Improve http toString --- .../datastore/https/HttpsDataSourceMetadata.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opentripplanner/datastore/https/HttpsDataSourceMetadata.java b/src/main/java/org/opentripplanner/datastore/https/HttpsDataSourceMetadata.java index 837d94e67e7..8946e7f5490 100644 --- a/src/main/java/org/opentripplanner/datastore/https/HttpsDataSourceMetadata.java +++ b/src/main/java/org/opentripplanner/datastore/https/HttpsDataSourceMetadata.java @@ -88,8 +88,8 @@ public String toString() { return ToStringBuilder .of(this.getClass()) .addObj("contentType", contentType) - .addStr("contentLength", FileSizeToTextConverter.fileSizeToString(contentLength)) - .addObj("lastModified", lastModified) + .addObj("contentLength", FileSizeToTextConverter.fileSizeToString(contentLength)) + .addObj("lastModified", Instant.ofEpochMilli(lastModified).toString()) .toString(); } }