u8views / go-u8views

GitHub-profile views tracker: displaying monthly view statistics
https://u8views.com
MIT License
449 stars 6 forks source link

Last month data should be accurate using last 30 days, not since current date of last month #29

Closed lulunac27a closed 4 months ago

lulunac27a commented 4 months ago

The view count for last month should be last 30 days, not since current date last month because the days in a month varies from 28 (February) to 31 (January, March, May, July, August, October, and December).

cristaloleg commented 4 months ago

Looks like it should be -1 month AND reset day number to 1. Assuming by "last 30 days" we want data for the last month.

YaroslavPodorvanov commented 4 months ago

I w'll not merge this PR, but i will increase date range in future