I've been working on an app to turn on a sprinkler timer for 1 hour per day (and, eventually, on selected days) but couldn't get it to activate at the specified hour. Initially tested in the debugger to avoid any "bricking" as mentioned here but without breakpoints. Finally got smart and actually looked at the time being received from DateTime.Now. Also included the string value in an IFTTT log. Here's an excerpt while cycling once a minute:
August 5, 2016 at 02:19PM Module469 ValveOpen 2016-08-05T23:19:46+05:00
August 5, 2016 at 02:20PM Module469 ValveClosed 2016-08-05T23:20:47+05:00
August 5, 2016 at 03:19PM Module469 ValveClosed 2016-08-05T19:16:39Z
August 5, 2016 at 03:20PM Module469 ValveOpen 2016-08-05T19:17:39Z
Note that I'm in the US East coast time zone. (The last two entries had the "Z" argument on the ToString() while the missing times where taken up with other things including trying to post log entries with the "L" argument - which refused to post but showed ok in the debugger. What's up with that?) As you can see, the time zone correction shows a +5 hours where it should be MINUS 5. Is there something I'm missing?