This is the workaround:
// For IE8 and earlier version. if (!Date.now) { Date.now = function() { return new Date().valueOf(); } }
source: Here