diff options
author | Vitaly Takmazov | 2019-04-09 11:15:41 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-04-09 11:15:41 +0300 |
commit | 6cc6261a10f6e8fbf39185342474b88342744580 (patch) | |
tree | 925829fb7f962e5c4461ddb0074b040610ba8734 /src/main/java/com/juick | |
parent | ab4745d3ac3a67b4f18d6df1e876a788a707dba5 (diff) |
Microseconds timestamp in replies
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r-- | src/main/java/com/juick/service/MessagesServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/MessagesServiceImpl.java b/src/main/java/com/juick/service/MessagesServiceImpl.java index 0cf321b6..ce9185d9 100644 --- a/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -185,7 +185,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ @Override public int createReply(final int mid, final int rid, final User user, final String txt, final String attachment) { int ridnew = getReplyIDIncrement(mid); - Date ts = Date.from(Instant.now()); + Timestamp ts = Timestamp.from(Instant.now()); getJdbcTemplate().update("INSERT INTO replies(message_id, reply_id, user_id, replyto, attach, txt, ts, updated_at, user_uri) " + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)", mid, ridnew, user.getUid(), rid, attachment, txt, ts, ts, user.getUri().toASCIIString()); |