Skip to content

Commit

Permalink
Add datetime function to getOldestPubDateInBlog sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLukas committed Jan 15, 2024
1 parent 6585b19 commit 9571c59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ public static String getOldestDateWithTag(final ReaderTag tag) {
public static String getOldestPubDateInBlog(long blogId) {
String sql = "SELECT date_published FROM tbl_posts"
+ " WHERE blog_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(blogId)});
}

Expand Down

0 comments on commit 9571c59

Please sign in to comment.