|
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.187 2005-04-28 00:21:42 richard Exp $ |
| 18 | +#$Id: back_anydbm.py,v 1.188 2005-07-12 01:37:49 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 |
@@ -1592,7 +1592,6 @@ def filter(self, search_matches, filterspec, sort=(None,None), |
1592 | 1592 | INTERVAL = 'spec:interval' |
1593 | 1593 | OTHER = 'spec:other' |
1594 | 1594 |
|
1595 | | - timezone = self.db.getUserTimezone() |
1596 | 1595 | for k, v in filterspec.items(): |
1597 | 1596 | propclass = props[k] |
1598 | 1597 | if isinstance(propclass, hyperdb.Link): |
@@ -1623,7 +1622,7 @@ def filter(self, search_matches, filterspec, sort=(None,None), |
1623 | 1622 | l.append((STRING, k, re.compile(v, re.I))) |
1624 | 1623 | elif isinstance(propclass, hyperdb.Date): |
1625 | 1624 | try: |
1626 | | - date_rng = date.Range(v, date.Date, offset=timezone) |
| 1625 | + date_rng = propclass.range_from_raw (v, self.db) |
1627 | 1626 | l.append((DATE, k, date_rng)) |
1628 | 1627 | except ValueError: |
1629 | 1628 | # If range creation fails - ignore that search parameter |
|
0 commit comments