You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In app/models/periodictask.rb the values for PREVIOUS_MONTHNAME and PREVIOUS_MONTH are calculated as "now - 2592000", where 2592000 is 30 days (in seconds). Obviously this fails at least once a year at the beginning of March, because February has 28 or 29 days.
On 1st March
expected: February
actual result: January
Maybe subtract the current day of month (multiplied by 86400) to return the last day of the previous month correctly?
The text was updated successfully, but these errors were encountered:
In app/models/periodictask.rb the values for PREVIOUS_MONTHNAME and PREVIOUS_MONTH are calculated as "now - 2592000", where 2592000 is 30 days (in seconds). Obviously this fails at least once a year at the beginning of March, because February has 28 or 29 days.
On 1st March
expected: February
actual result: January
Maybe subtract the current day of month (multiplied by 86400) to return the last day of the previous month correctly?
The text was updated successfully, but these errors were encountered: