File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
javasource/audittrail/log Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
8484 + auditableObject .getId ().toLong () + "), state: " + auditableObject .getState () + "/" + logType );
8585
8686 final IContext sudoContext = Core .createSystemContext ();
87- sudoContext .getSession ().setTimeZone (getTimeZone (context ));
87+
88+ // We introduced proper timezone handling only in Mendix 9.12.3, so for earlier versions we can use only raw offset
89+ sudoContext .getSession ().setTimeZone (TimeZone .getTimeZone (getTimeZone (context )).getRawOffset () * (-1 ) / 60 / 1000 );
8890 final IMendixObject logObject = Core .instantiate (sudoContext , Log .getType ());
8991
9092 IMendixIdentifier userObjectId = null ;
You can’t perform that action at this time.
0 commit comments