Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

day property not being respected #8

Open
memolipd opened this issue Aug 17, 2022 · 0 comments
Open

day property not being respected #8

memolipd opened this issue Aug 17, 2022 · 0 comments

Comments

@memolipd
Copy link

memolipd commented Aug 17, 2022

Probably because of the change here:
f5d0d25#diff-56f282214667421bcfcd834aaf7f78c82c29f8ea2611737cd7d0a6a15c63e6bfR10

The module also does not compile or import property:
TypeError: FiscalYear is not a function

workaround

is to call the default function:
const fiscalYear = FiscalYear.default({ month: 3, day: 6 })

proof lib is not working:
console.log(fiscalYear.getFiscalMonths(2022))
results

  '2021-04-01', '2021-05-01',
  '2021-06-01', '2021-07-01',
  '2021-08-01', '2021-09-01',
  '2021-10-01', '2021-11-01',
  '2021-12-01', '2022-01-01',
  '2022-02-01', '2022-03-01'

should be outputting the 5th of each month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant