Skip to content

Commit

Permalink
Revert "Reduce memory by not duplicating an argument"
Browse files Browse the repository at this point in the history
This reverts commit 0ad9c66.
  • Loading branch information
joshuacronemeyer committed Aug 14, 2023
1 parent c4e51c1 commit 7e71d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timecop/time_stack_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def scaling_factor

def time(time_klass = Time) #:nodoc:
if @time.respond_to?(:in_time_zone)
time = time_klass.at(@time.localtime)
time = time_klass.at(@time.dup.localtime)
else
time = time_klass.at(@time)
end
Expand Down

0 comments on commit 7e71d7e

Please sign in to comment.