From 80bb7f5ee6858e728c13f3ce781380f2d7c6b203 Mon Sep 17 00:00:00 2001 From: juyeong525 Date: Wed, 4 Oct 2023 13:49:27 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=C2=A0::=20=EC=9C=84?= =?UTF-8?q?=EC=A0=AF=EC=99=80=20mealTime=20=EB=A7=9E=EC=B6=94=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/MealDataService/Sources/Domain/Enum/MealTime.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/MealDataService/Sources/Domain/Enum/MealTime.swift b/Services/MealDataService/Sources/Domain/Enum/MealTime.swift index c138112b..1343dcbf 100644 --- a/Services/MealDataService/Sources/Domain/Enum/MealTime.swift +++ b/Services/MealDataService/Sources/Domain/Enum/MealTime.swift @@ -21,7 +21,7 @@ public extension MealTime { func checkIsNow() -> Bool { let nowTime = Date() var nowMeal: MealTime = .breakfast - if Int(nowTime.toString(format: "HH")) ?? 0 >= 14 { + if Int(nowTime.toString(format: "HH")) ?? 0 >= 13 { nowMeal = .dinner } else if Int(nowTime.toString(format: "HH")) ?? 0 >= 9 { nowMeal = .lunch From 61cc0ea1a88f137003e6de77e16200b239ebdc83 Mon Sep 17 00:00:00 2001 From: juyeong525 Date: Wed, 4 Oct 2023 15:27:49 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=C2=A0::=20=EC=95=88?= =?UTF-8?q?=EB=93=9C=EC=99=80=20=EB=A7=9E=EC=B6=94=EA=B8=B0=20=EC=9C=84?= =?UTF-8?q?=ED=95=B4=20=EB=8B=A4=EC=8B=9C=201=EC=8B=9C=20->=202=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Widget/Sources/Meal/XquareMealWidget.swift | 2 +- Services/MealDataService/Sources/Domain/Enum/MealTime.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Widget/Sources/Meal/XquareMealWidget.swift b/Application/Widget/Sources/Meal/XquareMealWidget.swift index 246d7d16..fd30f9ab 100644 --- a/Application/Widget/Sources/Meal/XquareMealWidget.swift +++ b/Application/Widget/Sources/Meal/XquareMealWidget.swift @@ -52,7 +52,7 @@ struct XquareMealWidgetProvider: TimelineProvider { private func getMealTime() -> MealTime { if 9 > Int(Date().toString(format: "HH"))! { return .breakfast - } else if 13 > Int(Date().toString(format: "HH"))! { + } else if 14 > Int(Date().toString(format: "HH"))! { return .lunch } else { return .dinner diff --git a/Services/MealDataService/Sources/Domain/Enum/MealTime.swift b/Services/MealDataService/Sources/Domain/Enum/MealTime.swift index 1343dcbf..c138112b 100644 --- a/Services/MealDataService/Sources/Domain/Enum/MealTime.swift +++ b/Services/MealDataService/Sources/Domain/Enum/MealTime.swift @@ -21,7 +21,7 @@ public extension MealTime { func checkIsNow() -> Bool { let nowTime = Date() var nowMeal: MealTime = .breakfast - if Int(nowTime.toString(format: "HH")) ?? 0 >= 13 { + if Int(nowTime.toString(format: "HH")) ?? 0 >= 14 { nowMeal = .dinner } else if Int(nowTime.toString(format: "HH")) ?? 0 >= 9 { nowMeal = .lunch