allow quarterly retention

This commit is contained in:
M Alfiyan Syamsuddin 2021-09-02 13:41:11 +07:00
parent d5471d6237
commit bcf64fcb37
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ class UptimeArchiver implements ArchiverInterface
{
// WIP, create more dynamic by config, temp use config.php
if(PSM_UPTIME_ARCHIVE == 'monthly'){
if(PSM_UPTIME_ARCHIVE == 'quarterly'){
$latest_date = new \DateTime('-3 month 0:0:0');
}else if(PSM_UPTIME_ARCHIVE == 'monthly'){
$latest_date = new \DateTime('-1 month 0:0:0');
}else{
$latest_date = new \DateTime('-1 week 0:0:0');