From 790ed4a7aed82bb48406c6b4aed15293dbfab149 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Sun, 21 Jan 2024 22:36:50 +0100 Subject: [PATCH] Adjusted for midnight goal --- src/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index c6ca947..f788ac3 100755 --- a/src/index.php +++ b/src/index.php @@ -76,8 +76,7 @@ storeActivity($activity); // Handle sleep streak $startingHour = (int) date("H"); -$startingMinute = (int) date("i"); -if ($activity->title == "Sleeping" && $startingHour > 15 && ($startingHour < 22 || ($startingHour == 22 && $startingMinute <= 5))) { +if ($activity->title == "Sleeping" && $startingHour > 18) { markTodayAsSuccess("sleep"); }