thamara/time-to-leave

Months start counting from zero

timagixe opened this issue · 3 comments

Describe the issue
When window to remove two entries from day shows up it states 2023-0-18, instead of 2023-1-18. Months are counted from zero.

To Reproduce
Steps to reproduce the behavior:

  1. got to month view
  2. add two entries to any day
  3. remove two entries
  4. observe confirmation window

Expected behavior
Modals shows date and month is counted from 1

Environment

  • Node/npm version: Node 18
  • OS: MacOS, Monterey
  • TTL version: latest

Screenshots
Screen Shot 2023-01-29 at 9 42 43 PM Screen Shot 2023-01-29 at 9 43 40 PM

Additional context
N/A

This is something I would expect to see. I can open PR if needed. Just let me know.

Screen Shot 2023-01-29 at 10 07 52 PM

I'd you know what to fix, please do!

Changes introduced in #942 fixes issue described above.
Screen Shot 2023-01-31 at 9 01 14 AM Screen Shot 2023-01-31 at 9 01 20 AM