From 0333cd92dd404c1d7602bccfe9e90294b8d04556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=98=84=EC=9A=B1?= <43038815+Hyeon-Uk@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:37:04 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20store=20=EB=8F=84=EB=A9=94=EC=9D=B8?= =?UTF-8?q?=EC=9D=98=20isOpen=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=AA=BB=ED=96=88=EB=8D=98=EA=B2=83=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#122)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 이전 PR에서 storeTime의 구조를 변경하면서 미처 변경하지 못한 도메인 수정 --- src/main/java/camp/woowak/lab/store/domain/Store.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/camp/woowak/lab/store/domain/Store.java b/src/main/java/camp/woowak/lab/store/domain/Store.java index 0aac748e..3db4cd61 100644 --- a/src/main/java/camp/woowak/lab/store/domain/Store.java +++ b/src/main/java/camp/woowak/lab/store/domain/Store.java @@ -80,7 +80,7 @@ public boolean isOpen() { LocalDateTime now = LocalDateTime.now(); - return (now.isEqual(openTime) || now.isAfter(openTime)) && now.isBefore(closeTime); + return openTime.isBefore(now) && now.isBefore(closeTime); } public String getStoreAddress() {