lib/logstash/plugin_mixins/value_tracking.rb in logstash-input-jdbc-4.3.5 vs lib/logstash/plugin_mixins/value_tracking.rb in logstash-input-jdbc-4.3.6

- old
+ new

@@ -67,10 +67,12 @@ end def set_value(value) if value.respond_to?(:to_datetime) @value = value.to_datetime + else + @value = DateTime.parse(value) end end end class TimeValueTracker < ValueTracking @@ -79,9 +81,11 @@ end def set_value(value) if value.respond_to?(:to_time) @value = value.to_time + else + @value = DateTime.parse(value).to_time end end end class FileHandler