miqe / ken.js

Ethiopian Date converter that works for the browser and node.js
7 stars 1 forks source link

some Gregorian dates are not converted properly #3

Closed b3rew closed 7 years ago

b3rew commented 7 years ago

for example if we convert "2017-09-10" to Ethiopian Date

Ken().toEth(new Date("2017-09-10")) // we will get 5-13-2009 

which is correct but the next date which is "2017-09-11"

Ken().toEth(new Date("2017-09-11")) // returns "36-1-2009"

the month is correct but the date & year are not

thanks

miqe commented 7 years ago

Fixed with #5