lib/timecop/time_stack_item.rb in timecop-0.9.7 vs lib/timecop/time_stack_item.rb in timecop-0.9.8
- old
+ new
@@ -54,10 +54,10 @@
@scaling_factor
end
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
if travel_offset.nil?