summaryrefslogtreecommitdiff
path: root/src/database/QueryUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/QueryUtils.java')
-rw-r--r--src/database/QueryUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/QueryUtils.java b/src/database/QueryUtils.java
index 0957647..ff26ec4 100644
--- a/src/database/QueryUtils.java
+++ b/src/database/QueryUtils.java
@@ -91,7 +91,7 @@ public class QueryUtils {
NamedPreparedStatement profileStatement,
Tweet tweet) throws SQLException {
tweetStatement.setLong("tweetid", tweet.id);
- tweetStatement.setString("createdat", tweet.created_at);
+ tweetStatement.setTimestamp("createdat", tweet.created_at);
tweetStatement.setLong("favcount", tweet.favorite_count);
tweetStatement.setLong("retweetcount", tweet.retweet_count);
tweetStatement.setString("text", tweet.text);
@@ -126,7 +126,7 @@ public class QueryUtils {
profileStatement.setLong("followedcount", twuser.friends_count);
profileStatement.setString("location", twuser.location);
profileStatement.setString("tweetname", twuser.screen_name);
- profileStatement.setString("createdat", twuser.created_at);
+ profileStatement.setTimestamp("createdat", twuser.created_at);
profileStatement.setString("language", twuser.lang);
}