Common needs timedelta

This commit is contained in:
Simon Quigley 2024-12-05 01:46:35 -06:00
parent b31d93b7be
commit 6f1714d100

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import os
from datetime import datetime, timezone
from datetime import datetime, timedelta, timezone
def clean_old_logs(log_dir, max_age_seconds=86400):
now = datetime.now(timezone.utc)