Skip to content

Commit

Permalink
⚡️ :: 안드와 맞추기 위해 다시 1시 -> 2시
Browse files Browse the repository at this point in the history
  • Loading branch information
juyeong525 committed Oct 4, 2023
1 parent 80bb7f5 commit 61cc0ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Application/Widget/Sources/Meal/XquareMealWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61cc0ea

Please sign in to comment.