lib/fluent/plugin/out_indicative.rb in fluent-plugin-indicative-0.1.2 vs lib/fluent/plugin/out_indicative.rb in fluent-plugin-indicative-0.1.3
- old
+ new
@@ -43,10 +43,10 @@
payload = {
apiKey: @api_key,
eventName: data[@event_name_key],
eventUniqueId: unique_id_key && data[unique_id_key],
properties: flatten_hash(data),
- eventTime: Date.parse(data[@event_time_key]).rfc3339
+ eventTime: DateTime.parse(data[@event_time_key]).rfc3339
}
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri.request_uri, headers)