We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f2b774f + 3939c7c commit c5cf3e7Copy full SHA for c5cf3e7
1 file changed
javasource/audittrail/log/CreateLogObject.java
@@ -84,7 +84,9 @@ public static IMendixObject createAuditLogItems(final IMendixObject auditableObj
84
+ auditableObject.getId().toLong() + "), state: " + auditableObject.getState() + "/" + logType);
85
86
final IContext sudoContext = Core.createSystemContext();
87
- sudoContext.getSession().setTimeZone(getTimeZone(context));
+
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);
90
final IMendixObject logObject = Core.instantiate(sudoContext, Log.getType());
91
92
IMendixIdentifier userObjectId = null;
0 commit comments