I’ve finally gotten around to delving in the “new” scripting functions and I’ve been having a problem with the .setTime() function. For the hour variable, when I enter an integer less than 12 it will set the time in the resulting date to an hour greater than 12. For example when I use the following function it returns the Date “Sun Mar 13 21:30:00 EDT 2016” but I was expecting it to return “Sun Mar 13 09:30:00 EDT 2016”, 2, 13), 9, 30, 0)Also, in order to get a Date of “Sun Mar 13 09:30:00 EDT 2016” I have to decrement the day by 1 AND set the hour variable to, 2, 12), 21, 30, 0)Based on the functions description it seems like this may be a bug but if it is something I am doing wrong, please let me know.


Ignition Platform v7.8.1
Ignition Server: Windows 7 PC, 8C, 2.4 GHz, 32GB RAM
Ignition Designer/Client Running On: Mac OSX 10.11.3, 4C, 2.7 GHz, 16GB RAM

This is a bug. It’s fixed already and will land in the 7.8.3 release.

Perfect! Thanks Kevin!