using the the correct timeformat for the query

This commit is contained in:
Ilyaaaaaaaaaaaaa Zhitomirskiy 2011-09-07 10:34:26 -07:00
parent 8bb19288f5
commit 20f5a02eed

View file

@ -135,11 +135,11 @@ SQL
end
def self.recent_login_query
"(last_sign_in_at > #{(Time.now - 1.month).to_i})"
"(last_sign_in_at > #{(Time.now - 1.month).iso8601})"
end
def self.old_login_query
"(last_sign_in_at < #{(Time.now - 1.month).to_i})"
"(last_sign_in_at < #{(Time.now - 1.month).iso8601})"
end
def self.never_login_query