After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 269413 - Search treats "4 weeks" and "1 month" as synonymous
Search treats "4 weeks" and "1 month" as synonymous
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.0.x (obsolete)
Other All
: Normal minor
: Future
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2004-11-12 17:18 UTC by Evan Prodromou
Modified: 2011-06-20 11:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
eds patch (8.37 KB, patch)
2011-06-20 11:55 UTC, Milan Crha
committed Details | Review
evo patch (1.40 KB, patch)
2011-06-20 11:56 UTC, Milan Crha
committed Details | Review

Description Evan Prodromou 2004-11-12 17:18:26 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.

Comment 1 Milan Crha 2011-06-20 11:55:32 UTC
Created attachment 190261 [details] [review]
eds patch

for evolution-data-server;

define new "get-relative-months" search function, which computes relatively to current time.
Comment 2 Milan Crha 2011-06-20 11:56:29 UTC
Created attachment 190262 [details] [review]
evo patch

for evolution;

Use new "get-relative-months" for months/years relative dates.
Comment 3 Milan Crha 2011-06-20 11:58:28 UTC
Created commit b6ab0d1 in eds master (3.1.3+)
Created commit d3f7229 in evo master (3.1.3+)