@bravenel @gopher.ny @bobbyD I found a bug in the way DateTime variables are displayed on the Hub Variables page.
Steps to reproduce:
- Create 2 DateTime hub variables. In my example I called them DateTime and DateTime2.
- Create an app to execute the following code. The second date is only 999 milliseconds after the first.
setGlobalVar("DateTime", "2024-09-21T23:59:59.000-0400")
log.debug "variable : ${getGlobalVar("DateTime")}"
setGlobalVar("DateTime2", "2024-09-21T23:59:59.999-0400")
log.debug "variable : ${getGlobalVar("DateTime2")}"
- In logging they show the correct values of 2024-09-21 23:59:59:
- Pull up the Hub Variables page and notice that your second variable (DateTime2 in my example) is showing 15 minutes after the DateTime variable even though the code above set them 999 milliseconds after.
Thanks!