X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2cd7af7e0b2ad97687849576ed4e3f52c37a6d55..45487e1ff8e7d334792440a2b5b3b1067269bfaf:/app/models/oauth_token.rb diff --git a/app/models/oauth_token.rb b/app/models/oauth_token.rb index b4519efe2..ae15dc658 100644 --- a/app/models/oauth_token.rb +++ b/app/models/oauth_token.rb @@ -52,7 +52,7 @@ class OauthToken < ApplicationRecord end def invalidate! - update(:invalidated_at => Time.now) + update(:invalidated_at => Time.now.utc) end def authorized?