Skip to content
Snippets Groups Projects
Commit fc64d68c authored by Robert Goldmann's avatar Robert Goldmann
Browse files

replace hardcoded timezone

parent 035eb312
Branches
Tags
No related merge requests found
......@@ -2,17 +2,17 @@ import logging
from datetime import datetime, timedelta
from typing import Callable, List
import pytz
from apscheduler.events import EVENT_JOB_EXECUTED, EVENT_JOB_ERROR, JobExecutionEvent
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from apscheduler.triggers.cron import CronTrigger
from tzlocal import get_localzone
from logic import Constants
from logic.database import Schemas
from logic.database.Schemas import DatabaseCleanupInfo
LOGGER = logging.getLogger(Constants.APP_NAME)
TIMEZONE = pytz.timezone('Europe/Berlin')
TIMEZONE = get_localzone()
class JobScheduler:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment