Skip to content

Commit 7e71d7e

Browse files
Revert "Reduce memory by not duplicating an argument"
This reverts commit 0ad9c66.
1 parent c4e51c1 commit 7e71d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/timecop/time_stack_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def scaling_factor
5656

5757
def time(time_klass = Time) #:nodoc:
5858
if @time.respond_to?(:in_time_zone)
59-
time = time_klass.at(@time.localtime)
59+
time = time_klass.at(@time.dup.localtime)
6060
else
6161
time = time_klass.at(@time)
6262
end

0 commit comments

Comments
 (0)