Timezones can differ between the client that starts the query and the process engine that processes the query. Use the timezone parameter to specify the timezone of the timestamp constants used in the where clause, for example, to specify local times. The dates returned in the query result set have the same timezone as that specified in the query.
If the parameter is set to null, the timestamp constants are assumed to be Coordinated Universal Time (UTC) times.
Examples of timezone parameters:
process.query("ACTIVITY.AIID", "ACTIVITY.STARTED > TS('2002-01-01T17:40')", null, null, java.util.TimeZone.getDefault() );
Specifies to return object IDs for activities that started later than 17:40 local time on 1 January 2002.
process.query("ACTIVITY.AIID", "ACTIVITY.STARTED > TS('2002-01-01T17:40')", null, null, null;
Specifies to return object IDs for activities that started later than 17:40 UTC on 1 January 2002. This specification is, for example, 6 hours earlier in Eastern Standard Time.