matthewmueller / date

Date() for humans
http://matthewmueller.github.io/date/
1.48k stars 88 forks source link

"In X days and Y hours" incorrectly interprets Y as days #70

Closed joepie91 closed 8 years ago

joepie91 commented 8 years ago

When specifying eg. "in 5 days and 2 hours" at https://matthewmueller.github.io/date/, the result is interpreted as (5 + 2) = 7 days. The issue appears to be the word 'and' - when specifying "in 5 days 2 hours", it correctly parses the text.