mde / timezone-js

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

Fixed the constructor to handle arguments that have year and month only #115

Closed shosokawa closed 10 years ago

shosokawa commented 10 years ago

Added code to handle two arguments specially so that it can prevent from setting day to 0.

longlho commented 10 years ago

Can you add some unit tests?

shosokawa commented 10 years ago

I added a unit test for the fix.

mde commented 10 years ago

どうもありがとうございました! Thank you very much!

shosokawa commented 10 years ago

どういたしまして! You are welcome!