lib/json_builder/extensions.rb in json_builder-3.0.6 vs lib/json_builder/extensions.rb in json_builder-3.0.7
- old
+ new
@@ -30,22 +30,22 @@
end
end
class Time
def to_builder
- self.strftime("%Y-%m-%dT%H:%M:%S").inspect
+ iso8601.inspect
end
end
class Date
def to_builder
- self.strftime("%Y-%m-%dT%H:%M:%S").inspect
+ to_time.iso8601.inspect
end
end
class DateTime
def to_builder
- self.strftime("%Y-%m-%dT%H:%M:%S").inspect
+ to_time.iso8601.inspect
end
end
module BSON
class ObjectId