# Turn on at sunrise or sunset not working

**URL:** <https://community.smartthings.com/t/turn-on-at-sunrise-or-sunset-not-working/5173>\
**Category:** Devices & Integrations\
**Created:** [September 20, 2014, 10:33pm UTC](https://community.smartthings.com/t/turn-on-at-sunrise-or-sunset-not-working/5173 "2014-09-20T22:33:48Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![smart](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/smart/32/87920_2.png) [@smart](https://community.smartthings.com/u/smart)\
**Post date:** [February 6, 2015, 4:18pm UTC](https://community.smartthings.com/t/turn-on-at-sunrise-or-sunset-not-working/5173/13 "2015-02-06T16:18:28Z")

</div>

@stephensuarez Boss, its a known issue about the Prev. Run time. and for an explanation why 1969…

> [@Troubleshooting scheduled event failures](http://community.smartthings.com/t/troubleshooting-scheduled-event-failures/9194/5):
>
> This is common Java programming error when converting Unix (epoch) time to Java Date object. The conversion requires explicit casting of epoch time to long data type which is often overlooked and results in incorrect Date. I believe this is just a UI issue though. I don’t know what I’m looking at in the last column labeled ‘schedule’. You’re looking at [cron](http://en.wikipedia.org/wiki/Cron) schedule.

---

_[View the full topic](https://community.smartthings.com/t/turn-on-at-sunrise-or-sunset-not-working/5173)._
