Skip to content

Bug: Routines time range #55

@nvllz

Description

@nvllz

Setting up overnight time range for a routine (9:00 PM-2:00 AM) results in the apps being blocked all day (after 2:00 AM). Switching the routine off and on results in it fixing itself, but I'm not sure if it'll start blocking apps properly at 9 PM again.

To fix you need to compare start_time and the end_time the other way. When value of end < start, the range crosses midnight. Add one full day before subtracting. Like in my case you want to schedule for only 5h, making it duration=(end−start+24).

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