Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Active Times gets confused if end time passes over into next day #214

Open
rorosaurus opened this issue Mar 2, 2023 · 1 comment
Labels
potential bug Bug reported but yet to be analysed
Milestone

Comments

@rorosaurus
Copy link

Description of the bug

At 11am, I noticed the lights still weren't on. If I disabled active times, the lights came on. Enabling active times, lights went off.

On a hunch, I changed the end time to 11pm, and the lights worked as expected. So I suspect there's a minor bug in the active time code that gets confused if the end time proceeds to the next day.

I verified this wasn't timezone related, confirmed correct time zone and time reported by date command.

Steps to reproduce

Active Time Settings used:
Start Time: 8am
End Time: 1am

Expected on time range: 8am-1am (implied next day)
Expected off time range: 1am-8am
Lights checked at: 11am

What happened instead?

Lights remained off during a time when they should be enabled.

Plugin version

0.8.1

OctoPrint version

1.8.7

(if relevant) OctoPi version

1.0.0

Log Files & Screenshots

No response

Anything else?

No response

@github-actions github-actions bot added the potential bug Bug reported but yet to be analysed label Mar 2, 2023
@cp2004
Copy link
Owner

cp2004 commented Mar 2, 2023

Hmm, that should have been handled by the code already, but perhaps there still exists some bugs with certain times. I remember working to fix this before. I'll take a look when I can but it might not be for a while unfortunately.

@cp2004 cp2004 added this to the 1.0.0 milestone Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential bug Bug reported but yet to be analysed
Projects
None yet
Development

No branches or pull requests

2 participants