From b9da72a604c972e85525e0c09dc94d37d7cef2c1 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Sat, 21 Dec 2024 13:41:14 +0100 Subject: [PATCH] Link to Java 21 documentation (#409) This prevents issues because older documentation may not apply to Java 21. See also openhab/openhab-addons#17939 Signed-off-by: Jacob Laursen --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4c93d8f8..d602bbfb 100644 --- a/README.md +++ b/README.md @@ -954,11 +954,11 @@ var formatter = time.DateTimeFormatter.ofPattern('dd.MM.yyyy HH:mm').withLocale( #### `time.javaInstantToJsInstant()` -Converts a [`java.time.Instant`](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Instant.html) to a JS-Joda [`Instant`](https://js-joda.github.io/js-joda/manual/Instant.html). +Converts a [`java.time.Instant`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/Instant.html) to a JS-Joda [`Instant`](https://js-joda.github.io/js-joda/manual/Instant.html). #### `time.javaZDTToJsZDT()` -Converts a [`java.time.ZonedDateTime`](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/ZonedDateTime.html) to a JS-Joda [`ZonedDateTime`](https://js-joda.github.io/js-joda/manual/ZonedDateTime.html). +Converts a [`java.time.ZonedDateTime`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/ZonedDateTime.html) to a JS-Joda [`ZonedDateTime`](https://js-joda.github.io/js-joda/manual/ZonedDateTime.html). #### `time.toZDT()`