Commits

Alexei Gousev  committed 6094eb6

Fixed a small naive/aware timezone issue

  • Participants
  • Parent commits 52ed8e5

Comments (0)

Files changed (1)

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