Update timezone from Europe/London to Europe/Moscow across configuration, backend, and frontend files for consistent time handling.
This commit is contained in:
parent
457dc74485
commit
60409362c7
8 changed files with 13 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ from backend.utils import (
|
|||
|
||||
router = APIRouter()
|
||||
|
||||
TZ = pytz.timezone("Europe/London")
|
||||
TZ = pytz.timezone("Europe/Moscow")
|
||||
|
||||
|
||||
@router.get("/schedule", response_model=ScheduleResponse)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ from backend.models import TaskCreate, EventCreate
|
|||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
TZ = pytz.timezone("Europe/London")
|
||||
TZ = pytz.timezone("Europe/Moscow")
|
||||
BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN", "")
|
||||
|
||||
# Состояния для ConversationHandler
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import pytz
|
|||
from backend.database import Task, Event, WeeklyTaskException
|
||||
from backend.models import ScheduleItem
|
||||
|
||||
TZ = pytz.timezone("Europe/London")
|
||||
TZ = pytz.timezone("Europe/Moscow")
|
||||
|
||||
|
||||
def get_weekday_from_date(date_str: str) -> int:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue