lib/logstash/plugin_mixins/jdbc.rb in logstash-input-jdbc-4.1.2 vs lib/logstash/plugin_mixins/jdbc.rb in logstash-input-jdbc-4.1.3

- old
+ new

@@ -273,9 +273,11 @@ private def decorate_value(value) if value.is_a?(Time) # transform it to LogStash::Timestamp as required by LS LogStash::Timestamp.new(value) + elsif value.is_a?(Date) + LogStash::Timestamp.new(value.to_time) elsif value.is_a?(DateTime) # Manual timezone conversion detected. # This is slower, so we put it in as a conditional case. LogStash::Timestamp.new(Time.parse(value.to_s)) else