stephen-hardy / xlsx.js

XLSX.js is a JavaScript library for converting the data in base64 XLSX files into JavaScript objects - and back! Please note that this library is licensed under the Microsoft Office Extensible File License - a license NOT approved by the OSI. While this license is based off of the MS-PL, which is OSI-approved, there are significant differences.
http://blog.innovatejs.com/?tag=xlsx-js
Other
575 stars 122 forks source link

Date.now() not correctly supported in <IE9 #17

Open Aymkdn opened 11 years ago

Aymkdn commented 11 years ago

You use Date.now() in your xlsx.js file when it's not correctly supported by < IE9

So you probably want to add this below code somewhere:

    if (!Date.now) {
      Date.now = function() {
        return new Date().valueOf();
      }
    }

If not then xslx.js won't work with < IE9 !