Hello, I’m trying to get a SmartApp to execute between two times, as I fear that using timeToday does not reset at midnight, and found timeOfDayIsBetween
The syntax is: timeOfDayIsBetween(Date start, Date stop, Date value, TimeZone timeZone)
I tried to configure as follows:
timeOfDayIsBetween(TimeA, TimeB, now(), location.Timezone)
and I get:
java.lang.NullPointerException: Cannot get property ‘timeZone’ on null object @ line
I’m sure it’s something simple and I’ve tried to hardcode “GMT-4” or milliseconds between GMT, I’ve tried “GMT-04:00”, nothing seems to work.
Help would be appreciated, maybe a simple example. Thanks!