Commits

Alexei Gousev committed 6094eb6

Fixed a small naive/aware timezone issue

Comments (0)

Files changed (1)

src/whoosh/support/times.py

     of microseconds since ``datetime.min``.
     """
 
-    return timedelta_to_usecs(dt - dt.min)
+    return timedelta_to_usecs(dt.replace(tzinfo=None) - dt.min)
 
 
 def long_to_datetime(x):