changed date functions in Mixpanel.js