]> git.cworth.org Git - sup/commitdiff
xapian: fix MAX_DATE
authorRich Lane <rlane@club.cc.cmu.edu>
Tue, 28 Jul 2009 03:19:29 +0000 (20:19 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Tue, 28 Jul 2009 16:00:49 +0000 (12:00 -0400)
lib/sup/xapian_index.rb

index 303b4d04d0dd4f743cb71eaeff3e64135079d97a..6358a20ca4a463682597199ec94acb5ae0e3b374 100644 (file)
@@ -14,7 +14,7 @@ class XapianIndex < BaseIndex
   ## so we must ensure they're reasonably valid. this typically only affect
   ## spam.
   MIN_DATE = Time.at 0
-  MAX_DATE = Time.at(2**31)
+  MAX_DATE = Time.at(2**31-1)
 
   def initialize dir=BASE_DIR
     super