Javascript new Date() does not match Camunda timezone

have a javascript script that executes something like:

var date1 = new Date();
var dateString = date1.toISOString();

The Camunda Container has TZ env set for new york time. But when the javascript executes, it gives me UTC time. What reasons could there be for the nashorn engine not using the jvm’s timezone?

I believe that is how #toIsoString is defined, see https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString

1 Like

!!! Thanks… can’t tell you the number of times I looked at that page and missed that.