diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-06-13 23:47:55 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-06-13 23:47:55 +0200 |
commit | db238af64235aa4ca23ce733de5b6de0a5fdc2e3 (patch) | |
tree | 7d78338ccfafadc59866676e8a7221d0285f236d /src/de/podfetcher/storage | |
parent | 85a1dd7006b4f1be0d556567edfdbf4f804c7fcd (diff) | |
download | AntennaPod-db238af64235aa4ca23ce733de5b6de0a5fdc2e3.zip |
Changed type of pubDate in FeedItem to Date
Diffstat (limited to 'src/de/podfetcher/storage')
-rw-r--r-- | src/de/podfetcher/storage/PodDBAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/de/podfetcher/storage/PodDBAdapter.java b/src/de/podfetcher/storage/PodDBAdapter.java index b2cdfb6a6..3548368df 100644 --- a/src/de/podfetcher/storage/PodDBAdapter.java +++ b/src/de/podfetcher/storage/PodDBAdapter.java @@ -62,7 +62,7 @@ public class PodDBAdapter { private static final String CREATE_TABLE_FEED_ITEMS = "CREATE TABLE " + TABLE_NAME_FEED_ITEMS + " (" + TABLE_PRIMARY_KEY + KEY_TITLE + " TEXT," + KEY_LINK + " TEXT," + KEY_DESCRIPTION - + " TEXT," + KEY_PUBDATE + " TEXT," + KEY_MEDIA + + " TEXT," + KEY_PUBDATE + " INTEGER," + KEY_MEDIA + " INTEGER," + KEY_FEED + " INTEGER," + KEY_READ + " INTEGER)"; @@ -216,7 +216,7 @@ public class PodDBAdapter { values.put(KEY_TITLE, item.getTitle()); values.put(KEY_LINK, item.getLink()); values.put(KEY_DESCRIPTION, item.getDescription()); - values.put(KEY_PUBDATE, item.getPubDate()); + values.put(KEY_PUBDATE, item.getPubDate().getTime()); if (item.getMedia() != null) { if(item.getMedia().getId() == 0) { setMedia(item.getMedia()); |