-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
It looks like this line:
| return moment(Date.parse(date)).format('MM/YYYY') |
sometimes makes the months be off by one. E.g. if the "startDate" is "2020-10", the generated date will be 09/2020. Or if the "startDate" is "2020-10-01", the generated date will be 09/2020
It looks like things would work out if moment was used directly:
> moment(Date.parse("2020-10")).format("MM/YYYY")
"09/2020"
> moment("2020-10").format("MM/YYYY")
"10/2020"
> moment(Date.parse("2020-10-01")).format("MM/YYYY")
"09/2020"
> moment("2020-10-01").format("MM/YYYY")
"10/2020"Though, I'm not sure if that causes other problems. Thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels