lib/sorcery/model/submodules/remember_me.rb in sorcery-0.7.2 vs lib/sorcery/model/submodules/remember_me.rb in sorcery-0.7.3

- old
+ new

@@ -48,10 +48,10 @@ module InstanceMethods # You shouldn't really use this one yourself - it's called by the controller's 'remember_me!' method. def remember_me! config = sorcery_config self.send(:"#{config.remember_me_token_attribute_name}=", TemporaryToken.generate_random_token) - self.send(:"#{config.remember_me_token_expires_at_attribute_name}=", Time.now + config.remember_me_for) + self.send(:"#{config.remember_me_token_expires_at_attribute_name}=", Time.now.in_time_zone + config.remember_me_for) self.save!(:validate => false) end # You shouldn't really use this one yourself - it's called by the controller's 'forget_me!' method. def forget_me! \ No newline at end of file