This is for support with a complain!
please see below the log of my app.
the bottom box is when i started my program and state.fromtime and state.totime are clearly in local datetime (ie Sat Oct 12 17:36:00 EDT 2019). These are the datetime were stored in state.fromtime and state.totime and it went through the checktime OK (bottom box)
BUT, less than a second later state.fromtime and state.totime were then reverted to ISO datetime (the top box)
It took me quite a while to figure out what was causing it. The solution was to copy the same checktime and made a second routine called checkISOtime.
The question here is why? why state variable changes from one time format to another? If ISO time is to be used why not storing it from the start. Why allows the local datetime to be used and then change it to ISO time milliseconds later?
The app was using ISO time at the beginning and rerun it give me this error
clearly the input were changed from ISO time to local time!
I change the app to use local time then this error!
I do not mind one way or the other but pick one and stick with it. Hubitat is a flatform for home automation and that is what I am doing with it and this should not happen.
Now i have two routines, one is used during start up to check the time because state.fromtime and state.totime were entered as local datetime
and another routine to checktime called checkISOtime because for what ever the reason the system decided to change my local datetime for state.fromtime and state.totime to ISO time!
here is the app setting that cleary state the state.fromtime and state.totime are in ISO time but my input were in local datetime!
i know growing pains come with new system such as hubitat but this is very basic. my app was working since 2.1.0 release and now in 2.1.5 changes were made without any documentation is not a good thing. I want to grow with hubitat but this is very basic guys.
( told you this was a complain!)