Change BP_HISTORY_DATE_LAST_7_DAYS to include the day before yesterday 01/59501/1
authorsungwon2.han <sungwon2.han@samsung.com>
Tue, 16 Feb 2016 06:11:18 +0000 (15:11 +0900)
committersungwon2.han <sungwon2.han@samsung.com>
Tue, 16 Feb 2016 06:11:18 +0000 (15:11 +0900)
Change-Id: I9fd71a6f51978d0b0f7eccfdab8b3f7ae36e18af

provider/browser-provider-history.c

index af9b3f3b65c50d93ec985402277f7d0a5ef6c3cb..2e20fa93b4c985bb3c19801cf84b411898debbf5 100755 (executable)
@@ -51,7 +51,7 @@ static char *__bp_history_get_date_query(int is_deleted, bp_history_date_defs da
                                checkcolumn);
        } else if (date_type == BP_HISTORY_DATE_LAST_7_DAYS) {
                date_cond =
-                       sqlite3_mprintf("DATE(%s) < DATE('now', '-2 days') AND DATE(%s) > DATE('now','-7 days')",
+                       sqlite3_mprintf("DATE(%s) <= DATE('now', '-2 days') AND DATE(%s) > DATE('now','-7 days')",
                                checkcolumn, checkcolumn);
        } else if (date_type == BP_HISTORY_DATE_LAST_MONTH) {
                date_cond =