~ubuntu-branches/ubuntu/quantal/shotwell/quantal

« back to all changes in this revision

Viewing changes to src/searches/SearchBoolean.vala

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-02-21 13:52:58 UTC
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: package-import@ubuntu.com-20120221135258-ao9jiib5qicomq7q
Tags: upstream-0.11.92
ImportĀ upstreamĀ versionĀ 0.11.92

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2011 Yorba Foundation
 
1
/* Copyright 2011-2012 Yorba Foundation
2
2
 *
3
3
 * This software is licensed under the GNU LGPL (version 2.1 or later).
4
4
 * See the COPYING file in this distribution. 
652
652
                return (dt.compare(date_one) <= 0);
653
653
            
654
654
            case Context.BETWEEN:
655
 
                return (dt.compare(date_one) >= 0 && dt.compare(date_two) < 0);
 
655
                DateTime second = date_two.add_days(1);
 
656
                return (dt.compare(date_one) >= 0 && dt.compare(second) < 0);
656
657
            
657
658
            case Context.IS_NOT_SET:
658
659
                return false; // Already checked above.