You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/08/24 21:28:52 UTC
(commons-lang) branch master updated: Add test for oldest Date
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 744a8671d Add test for oldest Date
744a8671d is described below
commit 744a8671d0f29188e9ffa561cd22fe8731f43ca5
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 24 17:28:47 2025 -0400
Add test for oldest Date
---
src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
index 85c8d29d0..12ff2acef 100644
--- a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
@@ -139,6 +139,12 @@ public static void classSetup() {
private static Stream<Arguments> testToLocalDateTimeTimeZone() {
// @formatter:off
return Stream.of(
+ Arguments.of(
+ // -292275055-05-16T16:47:04.192
+ LocalDateTime.of(-292275055, 5, 16, 16, 47, 04, 192_000_000),
+ new Date(Long.MIN_VALUE),
+ TimeZone.getTimeZone("GMT")
+ ),
Arguments.of(
LocalDateTime.ofInstant(Instant.EPOCH, TimeZone.getTimeZone("GMT").toZoneId()),
java.sql.Timestamp.valueOf("1970-01-01 00:00:00"),