Use timestamp insted of Date class

mssqloperationslogfix2
prathabanKavin 2 years ago
parent b42709c776
commit 52b8685149

@ -194,7 +194,7 @@ public class SQLServerOperationDAOImpl extends GenericOperationDAOImpl {
operation = new Operation();
operation.setId(rs.getInt("ID"));
operation.setType(Operation.Type.valueOf(rs.getString("TYPE")));
operation.setCreatedTimeStamp(new Date(rs.getLong("CREATED_TIMESTAMP")).toString());
operation.setCreatedTimeStamp(new Timestamp(rs.getLong("CREATED_TIMESTAMP") * 1000L).toString());
if (rs.getLong("UPDATED_TIMESTAMP") == 0) {
operation.setReceivedTimeStamp("");
} else {

Loading…
Cancel
Save