system.date.getTimezoneOffset

You are looking at it in the designer, which will use the designer's time zone. Date/time objects in Ignition are instances of java.util.Date which always carry their content as milliseconds UTC, rendering to string in whatever local timezone the code is running. The designer is a local application to your workstation, so it renders in your designer workstation's time zone. Gateway scripts (and Perspective scripts) are using the gateway's time zone for conversions to and from other formats.

You are seeing entirely expected behavior.

Note that Perspective components that are given utc milliseconds and told to render as date can display in the browser's time zone. See this topic:

1 Like