lib/json/add/time.rb in json_pure-1.8.6 vs lib/json/add/time.rb in json_pure-2.0.0

- old
+ new

@@ -1,9 +1,9 @@ +#frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end -# Time serialization/deserialization class Time # Deserializes JSON string by converting time since epoch to Time def self.json_create(object) if usec = object.delete('u') # used to be tv_usec -> tv_nsec