Skip to content

Commit

Permalink
Add datetime function to getOldestPubDateInFeed sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLukas committed Jan 15, 2024
1 parent 9571c59 commit 417de07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ public static String getOldestPubDateInBlog(long blogId) {
public static String getOldestPubDateInFeed(long feedId) {
String sql = "SELECT date_published FROM tbl_posts"
+ " WHERE feed_id=? AND tag_name='' AND tag_type=0"
+ " ORDER BY date_published LIMIT 1";
+ " ORDER BY datetime(date_published) LIMIT 1";
return SqlUtils.stringForQuery(ReaderDatabase.getReadableDb(), sql, new String[]{Long.toString(feedId)});
}

Expand Down

0 comments on commit 417de07

Please sign in to comment.