Revision 7399
Added by Chris Jones about 12 years ago
src/edu/ucsb/nceas/metacat/IdentifierManager.java | ||
---|---|---|
436 | 436 |
{ |
437 | 437 |
String memberNode = rs.getString(2); |
438 | 438 |
String status = rs.getString(3); |
439 |
java.sql.Date verified = rs.getDate(4);
|
|
439 |
java.sql.Timestamp verified = rs.getTimestamp(4);
|
|
440 | 440 |
|
441 | 441 |
Replica replica = new Replica(); |
442 | 442 |
NodeReference node = new NodeReference(); |
... | ... | |
1146 | 1146 |
//data values |
1147 | 1147 |
String memberNode = replica.getReplicaMemberNode().getValue(); |
1148 | 1148 |
String status = replica.getReplicationStatus().toString(); |
1149 |
java.sql.Date sqlDate = new java.sql.Date(replica.getReplicaVerified().getTime());
|
|
1149 |
java.sql.Timestamp sqlDate = new java.sql.Timestamp(replica.getReplicaVerified().getTime());
|
|
1150 | 1150 |
insertStatement.setString(1, guid); |
1151 | 1151 |
insertStatement.setString(2, memberNode); |
1152 | 1152 |
insertStatement.setString(3, status); |
1153 |
insertStatement.setDate(4, sqlDate);
|
|
1153 |
insertStatement.setTimestamp(4, sqlDate);
|
|
1154 | 1154 |
|
1155 | 1155 |
logMetacat.debug("smReplicationStatus sql: " + insertStatement.toString()); |
1156 | 1156 |
|
Also available in: Unified diff
Change the set and get methods for the replication verified date to use java.sql.Timestamp rather than java.util.Date via setTimestamp(), not setDate(). The hh:mm:ss.sss was previously getting truncated.