WIP: integrate-old-refactors-of-github #1

Draft
hdh20267 wants to merge 140 commits from integrate-old-refactors-of-github into main
3 changed files with 411 additions and 455 deletions
Showing only changes of commit 0c434e7e7f - Show all commits

View File

@@ -477,10 +477,11 @@ export function ScheduleExperiment({ user, onBack }: { user: User; onBack: () =>
let newScheduled = { ...prev }
const clampToReasonableHours = (d: Date) => {
// Allow full 24 hours (midnight to midnight)
const min = new Date(d)
min.setHours(5, 0, 0, 0)
min.setHours(0, 0, 0, 0)
const max = new Date(d)
max.setHours(23, 0, 0, 0)
max.setHours(23, 59, 59, 999)
const t = d.getTime()
return new Date(Math.min(Math.max(t, min.getTime()), max.getTime()))
}

0
scripts/docker-compose-reset.sh Normal file → Executable file
View File