Bug in display of DateTime Variables

@bravenel @gopher.ny @bobbyD I found a bug in the way DateTime variables are displayed on the Hub Variables page.

Steps to reproduce:

  1. Create 2 DateTime hub variables. In my example I called them DateTime and DateTime2.
  2. 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")}"

  1. In logging they show the correct values of 2024-09-21 23:59:59:
  2. 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!

2 Likes