I found the same issue with this in version 21.2 Java.
Here is my code.
JsonDataLoadOptions options = new JsonDataLoadOptions();
options.setSimpleValueParseMode(JsonSimpleValueParseMode.STRICT);
JsonDataSource dataSource = new JsonDataSource(dsByteStream, options);
CurrentThreadSettings.setTimeZone(TimeZone.getTimeZone("America/New_York"));
CurrentThreadSettings.setLocale(Locale.ENGLISH);
// Open a template document.
Document doc = new Document(docByteStream);
this.engine.buildReport(doc, dataSource, "data");`
The timezone is not set to “America/New_York”, it is set to whichever the timezone the server is located.
E.g the record show the time as 07-01-2021 10:00 AM and the server is in America/Havana. The report show the time at 07-01-2021 2:00 PM.
Can you please let me know if this is a bug?
Thanks