lib/semantic_logger/formatters/base.rb in semantic_logger-4.8.2 vs lib/semantic_logger/formatters/base.rb in semantic_logger-4.9.0
- old
+ new
@@ -68,9 +68,10 @@
private
# Return the Time as a formatted string
def format_time(time)
+ time = time.dup
case time_format
when :rfc_3339
time.utc.to_datetime.rfc3339
when :iso_8601
time.utc.iso8601(precision)