subeshb1 / Nepali-Date

📅 A small JS Library to convert English Date to Nepali and Vice Versa
https://subeshb1.github.io/Nepali-Date/
MIT License
54 stars 18 forks source link

Wrong value when parsing nepali date string #28

Open subeshb1 opened 4 years ago

subeshb1 commented 4 years ago

When parsing invalid date 2020/20/20 it gives 20/08/2021.

The value should be the same when the string is sent to the constructor.

The reason, this bug exists is because it uses the same logic as number constructor.

Acceptance Criteria The string value should be parsed as it is or not parsed at all.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.