adamjstewart / fiscalyear

:calendar: Utilities for managing the fiscal calendar
MIT License
52 stars 13 forks source link

Incorrect fiscal_day returned for last day of the year #15

Closed nicmendoza closed 3 years ago

nicmendoza commented 3 years ago

The fiscal_day code incorrectly calculates the date delta. Examples:

>>> fiscalyear.FiscalDate(2016,9,30).fiscal_day
1
>>> fiscalyear.FiscalDate(2017,9,30).fiscal_day
365
>>> fiscalyear.FiscalDate(2018,9,30).fiscal_day
366
adamjstewart commented 3 years ago

I'm going to look at this in detail this weekend and review your PR. We can do a patch release if we need to.