Commits

Matt Chaput committed ee7e5f9 Merge

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):