You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in fact for the audit in database there is not format possible
if you look at the code of AuditLogDaoImpl in Audit4j-db
everything is hard coded (timestamp and element).
please take also in account that this date event is store in a TIMESTAMP column
not a VARCHAR column
in the code of audit-db, you have
statement.setTimestamp(2, new Timestamp(event.getTimestamp().getTime()));
we shoud use the version with three parameters to force the time zone
example with time zone UTC
statement.setTimestamp(2, new Timestamp(event.getTimestamp().getTime()), Calendar.getInstance(TimeZone.getTimeZone("UTC"))));
please, look at your problem again and send a feed back with your need.
I am trying to store the audit timestamp with the UTC timezone included in the database. I am using the following config
But this has no effect, the timestamp is stored without the timezone
I am using audit4j-core version 2.5.0 and audit4j-db version 2.5.0
The text was updated successfully, but these errors were encountered: