mde / timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
824 stars 183 forks source link

Handle Date.parse returning null or NaN #109

Closed reavis closed 11 years ago

reavis commented 11 years ago

I'm running into the issue described in mde/timezone-js#100 too.

The problem is the isNaN check here: https://github.com/mde/timezone-js/blob/f3efe06555c57be51cad708c7e19889264e89b83/src/date.js#L201

I've created a JSFiddle that demonstrates the issue: http://jsfiddle.net/ttr2r/

longlho commented 11 years ago

Travis failed due to README parsing which you've already fixed :) Thanks

reavis commented 11 years ago

Thanks for accepting my changes @longlho!