Method: PostHog::Utils#isoify_dates

Defined in:
lib/posthog/utils.rb

#isoify_dates(hash) ⇒ Object

public: Returns a new hash with all the date values in the into iso8601

strings


32
33
34
35
36
# File 'lib/posthog/utils.rb', line 32

def isoify_dates(hash)
  hash.each_with_object({}) do |(k, v), memo|
    memo[k] = datetime_in_iso8601(v)
  end
end