corrected Timestamp format
This commit is contained in:
@@ -18,7 +18,7 @@ public class JodelPost {
|
|||||||
// content of the post
|
// content of the post
|
||||||
public String content;
|
public String content;
|
||||||
// date of the post
|
// date of the post
|
||||||
public Date date;
|
public Timestamp date;
|
||||||
// location if the post
|
// location if the post
|
||||||
public Location location;
|
public Location location;
|
||||||
// list of all comments for the post
|
// list of all comments for the post
|
||||||
@@ -79,7 +79,7 @@ public class JodelPost {
|
|||||||
this.id = rs.getLong("id");
|
this.id = rs.getLong("id");
|
||||||
this.title = rs.getString("title");
|
this.title = rs.getString("title");
|
||||||
this.content = rs.getString("content");
|
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.location = new Location(rs.getLong("longitude"), rs.getLong("latitude"));
|
||||||
this.reactions = new Reactions(rs.getLong("positive"), rs.getLong("negative"));
|
this.reactions = new Reactions(rs.getLong("positive"), rs.getLong("negative"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user