Permalink
Browse files

Set deleted_at with the right timezone.

  • Loading branch information...
1 parent 238eca6 commit daeb3869a4c2302820d1ac3973397ddeab86d126 @chewi chewi committed Apr 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/is_paranoid.rb
View
2 lib/is_paranoid.rb
@@ -72,7 +72,7 @@ def restore
# Mark the model deleted_at as now.
def destroy_without_callbacks
- self.deleted_at = Time.now.utc
+ self.deleted_at = current_time_from_proper_timezone
update_without_callbacks
end

0 comments on commit daeb386

Please sign in to comment.