Skip to content

After constraint with second, fix insideΒ #2588

@JoeyXitres

Description

@JoeyXitres

On line 55 in the AfterConstraint, it's compared with diffInHours. This should be in minutes, since Hours already is checked above.

$diff = (int) $schedule->timestamp_target->diffInHours(
now()->floorSeconds(),
absolute: true
);

This causes that now() diff in hours always is 0.

See line 60, delay min, but compared to diffInHours.

FIX
$diff = (int) $schedule->timestamp_target->diffInMinutes(
now()->floorSeconds(),
absolute: true
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions