mde / timezone-js

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

Check if date is a valid date #166

Closed Ajnasz closed 9 years ago

Ajnasz commented 9 years ago

Calling new Date(undefined); produces as a date object, which holds "Invalid date". Working on this object could produce very strange results. Throwing an error in that case may help debugging.

mde commented 9 years ago

Thanks! I'm inviting you as a contributor. :)