From 712d25220d38cdccd5c0b664da85f8248ec42900 Mon Sep 17 00:00:00 2001 From: kmw2378 Date: Thu, 30 May 2024 00:31:07 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[HOTFIX]=EB=82=A0=EC=A7=9C=20=ED=95=84?= =?UTF-8?q?=ED=84=B0=EB=A7=81=20=EA=B2=80=EC=A6=9D=EC=8B=9C=20=EC=98=A4?= =?UTF-8?q?=EB=8A=98=EB=82=A0=EA=B9=8C=EC=A7=80=20=EC=A1=B0=ED=9A=8C?= =?UTF-8?q?=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=20=ED=97=88=EC=9A=A9=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95(#2?= =?UTF-8?q?54)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/kakaoshare/backend/common/vo/Date.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kakaoshare/backend/common/vo/Date.java b/src/main/java/org/kakaoshare/backend/common/vo/Date.java index 6735d828e..d291b5757 100644 --- a/src/main/java/org/kakaoshare/backend/common/vo/Date.java +++ b/src/main/java/org/kakaoshare/backend/common/vo/Date.java @@ -34,7 +34,7 @@ private void validateDateRange(final LocalDate startDate, final LocalDate endDat throw new IllegalArgumentException(); } - if (endDate.isAfter(LocalDate.now())) { + if (!endDate.equals(LocalDate.now()) && endDate.isAfter(LocalDate.now())) { throw new IllegalArgumentException(); } From 5be3492d05e4990e9f4130f19d0e8faeba3cbf57 Mon Sep 17 00:00:00 2001 From: kmw2378 Date: Thu, 30 May 2024 00:58:51 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[HOTFIX]Date=20=EC=9D=98=20startDate,=20end?= =?UTF-8?q?Date=20=EB=91=98=20=EC=A4=91=20=ED=95=98=EB=82=98=EB=9D=BC?= =?UTF-8?q?=EB=8F=84=20null=EC=9D=B4=EB=A9=B4=20=EC=98=88=EC=99=B8?= =?UTF-8?q?=EB=A5=BC=20=EB=B0=9C=EC=83=9D=EC=8B=9C=ED=82=A4=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95=20(#254)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/kakaoshare/backend/common/vo/Date.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kakaoshare/backend/common/vo/Date.java b/src/main/java/org/kakaoshare/backend/common/vo/Date.java index d291b5757..cdf94d0a5 100644 --- a/src/main/java/org/kakaoshare/backend/common/vo/Date.java +++ b/src/main/java/org/kakaoshare/backend/common/vo/Date.java @@ -30,7 +30,7 @@ public LocalDateTime getEndDateTime() { } private void validateDateRange(final LocalDate startDate, final LocalDate endDate) { - if (startDate == null && endDate == null) { + if (startDate == null || endDate == null) { throw new IllegalArgumentException(); }