GNOME Bugzilla – Bug 269413
Search treats "4 weeks" and "1 month" as synonymous
Last modified: 2011-06-20 11:58:28 UTC
Distribution: Debian 3.1 Package: Evolution Priority: Normal Version: GNOME2.8.1 unspecified Gnome-Distributor: Debian Synopsis: Search treats "4 weeks" and "1 month" as synonymous Bugzilla-Product: Evolution Bugzilla-Component: Mailer Bugzilla-Version: unspecified Description: Description of Problem: For most people who use the Gregorian calendar, "one month ago" means the same number-day of the previous month. For example, one month ago from November 12th, 2004 is October 12th, 2004. For search in the Evolution mailer system, "one month" is treated as exactly 4 weeks. So, when I ask for mail that I received since one month, I get mail dating from October 15th, 2004, not October 12th. Steps to reproduce the problem: 1. In a folder with lots of mail, start an advanced search. 2. For the search parameters, choose "Date received", "is after", "one month ago". 3. Hit OK. Actual Results: The "cutoff" date will be 4 weeks ago, not one month ago. Expected Results: One month. How often does this happen? Every time. Additional Information: Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
Created attachment 190261 [details] [review] eds patch for evolution-data-server; define new "get-relative-months" search function, which computes relatively to current time.
Created attachment 190262 [details] [review] evo patch for evolution; Use new "get-relative-months" for months/years relative dates.
Created commit b6ab0d1 in eds master (3.1.3+) Created commit d3f7229 in evo master (3.1.3+)