klaviyo/ruby-klaviyo

Is the inline documentation correct for kwarg time?

stevenou opened this issue · 2 comments

# @kwargs :time [Integer] timestamp of the event

I don't think time is supposed to be an integer based on the code here which calls to_time.to_i

params[:time] = kwargs[:time].to_time.to_i if kwargs[:time]

looks like you're correct, the unix timestamp should be the argument, not a datetime - we're making some updates this week, will add this in

Corrected in v2.0.6