omz / AppSales-Mobile

App Sales allows iPhone and Mac App Store developers to download and analyze their daily and weekly sales reports from iTunes Connect.
http://omz-software.com
1.89k stars 406 forks source link

fiscal months not handled for 2016 and + #282

Open henry63 opened 8 years ago

henry63 commented 8 years ago

fiscal months are not handled for 2016 and above

githubgitgit commented 8 years ago

Same problem. Amounts are accumulating in February 2016.

acroedit commented 8 years ago

Same problem.

Bennsen84 commented 8 years ago

same here. maybe it´s something wrong with the leap-year?

henry63 commented 8 years ago

I found a fix - AppleFiscalCalendar.m, line 35 : while (period < 100) . Replace 100 (number of month since 2008) with a larger figure (eg 120)

Bennsen84 commented 8 years ago

perfect @henry63 ! works again for me ;) thanks a lot

nicolasgomollon commented 8 years ago

It seems like this repo is quickly becoming obsolete, so I’ve gone ahead and forked my own that includes a fix for this issue, and many more at nicolasgomollon/AppSales-Mobile. I recommend you guys check it out!

AndreiArdelean1 commented 8 years ago

In AppleFiscalCalendar.m, line 35 replace while (period < 100) with while (period < 100 || [currentDate timeIntervalSinceNow] < 10 * 7 * 24 * 60 * 60)