]> git.openstreetmap.org Git - rails.git/blobdiff - script/update-spam-blocks
Don't order by id when getting last records
[rails.git] / script / update-spam-blocks
index 40f2cb03c5715f4b89dece59964ad7ebb13bd16b..b5656f6ac0b5b7aad20208084b990789985fdc9b 100755 (executable)
@@ -6,7 +6,7 @@ require "generator"
 addresses = User.count(
   :conditions => {
     :status => %w[suspended deleted],
-    :creation_time => Time.now - 28.days..Time.now
+    :creation_time => Time.now.utc - 28.days..Time.now.utc
   },
   :group => :creation_ip
 )