I had this problem with performing SQL queries as well. It turned out that there is something going wrong on the JVM. So, after I set the default time zone of the JVM to UTC it worked out fine for me.
How I did that is by adding a java action to the after startup logic with exactly one needed line of code, writing a log line, and a return statement:
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
Core.getLogger("ASu").info("default JVM time zone set to UTC!");