Adjusted for midnight goal
This commit is contained in:
parent
d9dad4ab91
commit
790ed4a7ae
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue