Skip to content

Negative offset breaks if wait is over an hour past midnight  #48

@davidsanner

Description

@davidsanner

In a 'wait' usage, if a negative offset pushes the wait over an hour past midnight, it returns before it should (immediately).

example: sun sets @ 8:30pm and run at 4pm.
works / waits:  sunwait wait daylight offset -3:00 set
doesn't wait:   sunwait wait daylight offset -5:00 set

2nd example has the wait going over an hour into the next day so fails, returns immediately.
So... works in winter, breaks in summer ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions