Skip to content

Commit

Permalink
Merge pull request #56 from Academic-Weapons/gh-issue-51
Browse files Browse the repository at this point in the history
fix: posts from simapi no longer appears to be from 1970
  • Loading branch information
mathiasbk1 authored Mar 21, 2023
2 parents 349c8bd + 341b9d3 commit 86f2e60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public int insertMessage(int userId, SimData data) throws SQLException, ClassNot
PreparedStatement stmt = conn.prepareStatement(query)) {
stmt.setInt(1, userId);
stmt.setString(2, data.getContent());
stmt.setInt(3, (int) Instant.now().getEpochSecond() / 1000);
stmt.setInt(3, (int) System.currentTimeMillis() / 1000);
int rs = stmt.executeUpdate();
return rs;
}
Expand Down

0 comments on commit 86f2e60

Please sign in to comment.