Резервное копирование: поля формы в столбик, дата последней копии по-русски; gofmt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
zuevav
2026-10-05 14:59:36 +03:00
parent 6aecac1cc8
commit 2c01ec2927
7 changed files with 24 additions and 12 deletions
+9
View File
@@ -177,3 +177,12 @@ func registerBackup(mux *http.ServeMux, rc *RuntimeConfig) {
jsonOut(w, opResult(backupOp(ctx, "restore", backupParams(r))))
})
}
// backupWhen — время копии из статуса (RFC 3339) в виде «05.10.2026 14:46».
func backupWhen(at string) string {
t, err := time.Parse(time.RFC3339, at)
if err != nil {
return at
}
return t.Local().Format("02.01.2006 15:04")
}