GoAdminGroup / go-admin

A golang framework helps gopher to build a data visualization and admin panel in ten minutes
https://www.go-admin.com
Apache License 2.0
8.13k stars 1.32k forks source link

[Question]Updated_at not updated #453

Open nvminh596 opened 3 years ago

nvminh596 commented 3 years ago

why column updated_at not updated when i submit form?

cao7113 commented 2 years ago

why column updated_at not updated when i submit form?

work around like below:

    formList.SetPreProcessFn(func(values form2.Values) form2.Values {
        values.Add("updated_at", time.Now().Format(time.RFC3339))
        return values
    })
waset commented 1 year ago

why column updated_at not updated when i submit form?

work around like below:

  formList.SetPreProcessFn(func(values form2.Values) form2.Values {
      values.Add("updated_at", time.Now().Format(time.RFC3339))
      return values
  })

What should I do with created_at?