Having trouble with AppDaemon and sunsets

Got it. To confirm: will the logs always show timestamps in UTC? Or do they show in the local time?

Logs should be localtime always

Okay – my problem must lie somewhere therein.

When I run date on my Raspberry Pi, I get the correct local time:

Mon 14 Aug 20:42:19 MDT 2017

When I run date inside my AppDaemon Docker container, I still get the correct time (albeit in slightly different format):

Mon Aug 14 20:42:51 MDT 2017

When I restart that container, the Docker logs (which are simply outputting the AppDaemon logs directly) show something very different:

2017-08-15 02:43:46.279341 INFO Loading Object...

From my localized vantage point, that timestamp is in UTC.

Ok, I’ll need to dig into the code and so some googling to figure out why this might be happening. Can I ask you to create an issue on github to remind me?

You got it: https://github.com/home-assistant/appdaemon/issues/114

Thanks!

See it - thanks :slight_smile: