corrected Timestamp format
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user