fix: синхронизации лекций
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 9s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 1m3s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 25s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 7s

This commit is contained in:
2026-05-12 00:44:27 +03:00
parent 9b28a09253
commit 860964e3c2
4 changed files with 272 additions and 19 deletions
@@ -51,14 +51,16 @@ function toInputDateTime(date: Date) {
return new Date(date.getTime() - offsetMs).toISOString().slice(0, 16)
}
const now = new Date()
const inTwoWeeks = new Date(now)
const todayStart = new Date()
todayStart.setHours(0, 0, 0, 0)
const inTwoWeeks = new Date(todayStart)
inTwoWeeks.setDate(inTwoWeeks.getDate() + 14)
inTwoWeeks.setHours(23, 59, 0, 0)
const syncForm = ref({
specialtyCode: '',
typeIds: [] as ApiScheduleTypeId[],
timeMin: toInputDateTime(now),
timeMin: toInputDateTime(todayStart),
timeMax: toInputDateTime(inTwoWeeks),
})