]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/oauth2_verifier.rb
Merge remote-tracking branch 'upstream/pull/4929'
[rails.git] / app / models / oauth2_verifier.rb
index 3eca1038c22333263f8d213974d90ba78066395f..1613eabeb516701976889d4550a8fa715126f074 100644 (file)
@@ -67,6 +67,6 @@ class Oauth2Verifier < OauthToken
   def generate_keys
     self.token = OAuth::Helper.generate_key(20)[0, 20]
     self.expires_at = 10.minutes.from_now
   def generate_keys
     self.token = OAuth::Helper.generate_key(20)[0, 20]
     self.expires_at = 10.minutes.from_now
-    self.authorized_at = Time.now
+    self.authorized_at = Time.now.utc
   end
 end
   end
 end