Question on UTC time, different results in script console and script transform

Every time you print a datetime object, print performs a string conversion for you. (Because print can't print binary objects.) The default string conversion uses the time zone of the JVM where the script is running. The designer is a separate JVM from the gateway, so differences are utterly normal.

See this entire topic to reset your paradigm:

(And don't use python's stdlib in jython where there are Java alternatives. Full stop.)