Резервное копирование: поля формы в столбик, дата последней копии по-русски; gofmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user