Request To Fix TimeZone Transformation

Use Java's ZonedDateTime. Ignition's datetime objects are java.util.Date which are fundamentally UTC under the hood, with no attached time zone. Which means they always use the time zone of the JVM when parsing or printing. When you manipulate them with .addHours(), you are not making a time zone correction, but are altering the underlying UTC value. Don't use .addHours() to make time zone corrections.

Read this entire topic:

Note also that DateTimeFormatter can parse, too.

3 Likes