using the the correct timeformat for the query
This commit is contained in:
parent
8bb19288f5
commit
20f5a02eed
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue