]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_token.rb
Merge pull request #3935 from Hufkratzer/rename-horse-riding-label
[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?
-    expiry < Time.now
+    expiry < Time.now.utc
   end
 
   private