For a specific subset of regular reports, I need the scripting to kick out data in a fixed offset time zone. (UTC would be fine, UTC -x would be marginally better.)
The gateway is correctly configured to use daylight savings so the system works as needed for display & local control interaction. That also works for the majority of reporting.
I've tried pulling the date and trying to return it with system.date.format(foo,"yyyy-MM-dd HH:mm:ss X="-0700"), but that just shows the existing gateway timezone and then my input.
Similar with other variations of single quotes, no quotes, -7, and substituting Z instead of X based on the simple date format. I'm sure I am missing something silly, but I cannot find how to get the system to report data in my desired timezone.
This is just to display in a report & kick to Excel format. If it can simply show the data in UTC, I can manually manipulate hours if necessary.
Since this is within a dataset, I also will need to then append it to a new data column. I think I have correctly set that up:
from java.util import Date && system.dataset.addColumn(PDS,foo,"NewTime",Date)
Thank you.