# Auto Off Time - incorrect local time?

**URL:** <https://forum.electromage.com/t/auto-off-time-incorrect-local-time/1074>\
**Category:** Troubleshooting\
**Created:** [March 15, 2021, 8:52am UTC](https://forum.electromage.com/t/auto-off-time-incorrect-local-time/1074 "2021-03-15T08:52:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jeff](https://forum.electromage.com/user_avatar/forum.electromage.com/jeff/32/3473_2.png) [@jeff](https://forum.electromage.com/u/jeff)\
**Post date:** [March 17, 2021, 4:52pm UTC](https://forum.electromage.com/t/auto-off-time-incorrect-local-time/1074/4 "2021-03-17T16:52:46Z")

</div>

Hey @emdeex,

I found this in an earlier thread:

> the on/off setting turns off the LEDs if the time is after the OFF time or before the ON time.

@wizard, what would you think of the following modification to this logic?

(Assume all time is specified as hours in a single day where zero is midnight)

If on time before (less than) off time,  
On if now is (after on time _AND_ before off time)  
If on time is after (greater than) off time,  
On if now is (after on time _OR_ before off time)

---

_[View the full topic](https://forum.electromage.com/t/auto-off-time-incorrect-local-time/1074)._
