From: sungwon2.han Date: Tue, 16 Feb 2016 22:51:37 +0000 (+0900) Subject: Change BP_HISTORY_DATE_LAST_MONTH to include history items between X-Git-Tag: submit/tizen/20160217.225721^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5529529b78ef3a0afe16e8423bda9fbef24c5f3;p=platform%2Fframework%2Fweb%2Fbrowser-provider.git Change BP_HISTORY_DATE_LAST_MONTH to include history items between -7 day and -1 month. Change-Id: I251c2d0616cabdb6450d14561acc3f4d36476acd --- diff --git a/provider/browser-provider-history.c b/provider/browser-provider-history.c index 2e20fa9..8331ad6 100755 --- a/provider/browser-provider-history.c +++ b/provider/browser-provider-history.c @@ -55,11 +55,11 @@ static char *__bp_history_get_date_query(int is_deleted, bp_history_date_defs da checkcolumn, checkcolumn); } else if (date_type == BP_HISTORY_DATE_LAST_MONTH) { date_cond = - sqlite3_mprintf("DATE(%s) <= DATE('now','-1 months') AND DATE(%s) > DATE('now', '-2 months')", + sqlite3_mprintf("DATE(%s) <= DATE('now','-7 days') AND DATE(%s) > DATE('now', '-1 months')", checkcolumn, checkcolumn); } else if (date_type == BP_HISTORY_DATE_OLDER) { date_cond = - sqlite3_mprintf("DATE(%s) <= DATE('now', '-2 months')", + sqlite3_mprintf("DATE(%s) <= DATE('now', '-1 months')", checkcolumn); }