From c6deee3da7ca584a85e20c2e92b546632b5ca99a Mon Sep 17 00:00:00 2001 From: Timo Date: Sat, 25 May 2024 16:21:19 +0200 Subject: [PATCH] corrected Timestamp format --- src/main/java/de/anxietyprime/swajodel/JodelPost.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")); }