* mu: store date as 0 if it does not exist; this allows searching
This commit is contained in:
@ -207,10 +207,9 @@ add_terms_values_date (Xapian::Document& doc, MuMsg *msg, MuMsgFieldId mfid)
|
|||||||
const char *datestr;
|
const char *datestr;
|
||||||
|
|
||||||
t = (time_t)mu_msg_get_field_numeric (msg, mfid);
|
t = (time_t)mu_msg_get_field_numeric (msg, mfid);
|
||||||
if (t != 0) {
|
|
||||||
datestr = mu_date_time_t_to_str_s (t, FALSE /*UTC*/);
|
datestr = mu_date_time_t_to_str_s (t, FALSE /*UTC*/);
|
||||||
doc.add_value ((Xapian::valueno)mfid, datestr);
|
doc.add_value ((Xapian::valueno)mfid, datestr);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
G_GNUC_CONST
|
G_GNUC_CONST
|
||||||
|
|||||||
Reference in New Issue
Block a user