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"); }