module JsonbAccessor::Helpers

def parse_date(datetime)

Parse datetime based on the configured default_timezone
def parse_date(datetime)
  if active_record_default_timezone == :utc
    Time.find_zone("UTC").parse(datetime).in_time_zone
  else
    Time.zone.parse(datetime)
  end
end