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
🚀 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:
@@ -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),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user