|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -#$Id: back_anydbm.py,v 1.179.2.7 2005-03-03 22:12:35 richard Exp $ |
| 18 | +#$Id: back_anydbm.py,v 1.179.2.8 2005-07-12 01:43:17 richard Exp $ |
19 | 19 | '''This module defines a backend that saves the hyperdatabase in a |
20 | 20 | database chosen by anydbm. It is guaranteed to always be available in python |
21 | 21 | versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several |
@@ -1588,7 +1588,6 @@ def filter(self, search_matches, filterspec, sort=(None,None), |
1588 | 1588 | INTERVAL = 'spec:interval' |
1589 | 1589 | OTHER = 'spec:other' |
1590 | 1590 |
|
1591 | | - timezone = self.db.getUserTimezone() |
1592 | 1591 | for k, v in filterspec.items(): |
1593 | 1592 | propclass = props[k] |
1594 | 1593 | if isinstance(propclass, hyperdb.Link): |
@@ -1619,7 +1618,7 @@ def filter(self, search_matches, filterspec, sort=(None,None), |
1619 | 1618 | l.append((STRING, k, re.compile(v, re.I))) |
1620 | 1619 | elif isinstance(propclass, hyperdb.Date): |
1621 | 1620 | try: |
1622 | | - date_rng = date.Range(v, date.Date, offset=timezone) |
| 1621 | + date_rng = propclass.range_from_raw (v, self.db) |
1623 | 1622 | l.append((DATE, k, date_rng)) |
1624 | 1623 | except ValueError: |
1625 | 1624 | # If range creation fails - ignore that search parameter |
|
0 commit comments