Skip to content

Input Date Not Working As Expected #1

Description

@darrenlsx

image.png

Input: add amt/100 t/31-02-2023 cat/cat curr/usd

Expected Output: Invalid date.

Actual Output: The following expense is successfully added:
SGD100.00 cat:cat date:28/02/2023

Reason: There should not be a 31 days in February. Although the program take it as the last day of Feb (28 Feb), would still have expected Invalid Date as an error. This works with 30 days as well.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions