]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_token.rb
Enable the ActionOrder cop for remaining controllers
[rails.git] / app / models / user_token.rb
index 8c9bf4aeb36de68479d11533e406f9106877da4b..f927563a948694b80197a2cdf1523f9f9ec126e4 100644 (file)
@@ -24,7 +24,7 @@ class UserToken < ApplicationRecord
   after_initialize :set_defaults
 
   def expired?
   after_initialize :set_defaults
 
   def expired?
-    expiry < Time.now
+    expiry < Time.now.utc
   end
 
   private
   end
 
   private