Add logic to handle mid-night issue of Mixpanel API