diff --git a/src/main/java/de/anxietyprime/swajodel/JodelPost.java b/src/main/java/de/anxietyprime/swajodel/JodelPost.java index dfce44e..bab4d6c 100644 --- a/src/main/java/de/anxietyprime/swajodel/JodelPost.java +++ b/src/main/java/de/anxietyprime/swajodel/JodelPost.java @@ -18,7 +18,7 @@ public class JodelPost { // content of the post public String content; // date of the post - public Date date; + public Timestamp date; // location if the post public Location location; // list of all comments for the post @@ -79,7 +79,7 @@ public class JodelPost { this.id = rs.getLong("id"); this.title = rs.getString("title"); this.content = rs.getString("content"); - this.date = rs.getDate("postdate"); + this.date = rs.getTimestamp("postdate"); this.location = new Location(rs.getLong("longitude"), rs.getLong("latitude")); this.reactions = new Reactions(rs.getLong("positive"), rs.getLong("negative")); }