]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/oauth_token.rb
Format report text with kramdown
[rails.git] / app / models / oauth_token.rb
index b4519efe21642a0b60693e6279d2eeb32d59fde7..ae15dc658e73ec726bc78d989505ad34ce8fac88 100644 (file)
@@ -52,7 +52,7 @@ class OauthToken < ApplicationRecord
   end
 
   def invalidate!
-    update(:invalidated_at => Time.now)
+    update(:invalidated_at => Time.now.utc)
   end
 
   def authorized?