diff options
author | Vitaly Takmazov | 2023-02-01 20:22:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-02-01 21:29:08 +0300 |
commit | 57222853c90b0ffc4b800adeeddc289d58ee0a25 (patch) | |
tree | 8d658ed98a48fbe7e078ce7da7a4c17c405ffb7a /src/main/java/com/juick/service/UserServiceImpl.java | |
parent | 225b85bfd43753a4748dca2bc47b7018294cdfd3 (diff) |
Store timestamp in milliseconds when using SQLite
Diffstat (limited to 'src/main/java/com/juick/service/UserServiceImpl.java')
-rw-r--r-- | src/main/java/com/juick/service/UserServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java index e30be17b..8ed8fd96 100644 --- a/src/main/java/com/juick/service/UserServiceImpl.java +++ b/src/main/java/com/juick/service/UserServiceImpl.java @@ -591,7 +591,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService { @Override @Transactional public void updateLastSeen(User user) { - getJdbcTemplate().update("UPDATE users SET last_seen=? WHERE id=?", Instant.now().atOffset(ZoneOffset.UTC), user.getUid()); + getJdbcTemplate().update("UPDATE users SET last_seen=? WHERE id=?", toDateTime(Instant.now().atOffset(ZoneOffset.UTC)), user.getUid()); } @Override |