diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-09 12:36:34 +0200 |
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-09 12:36:34 +0200 |
| commit | 1e0ae41f1ec06379a6602613612c085ad053c0fa (patch) | |
| tree | 9b33fa25b762f1fe5df6d5ee2f675571747b21fb | |
| parent | f63164d92fc06968d03e509e749e1df1a318a798 (diff) | |
add (edit) on date field after idea is edited
| -rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -244,7 +244,7 @@ func main() { i.Title = r.FormValue("title") i.Text = r.FormValue("text") - i.LastUpdated = time.Now().Format(DateLayout) + i.LastUpdated = time.Now().Format(DateLayout) + " (edit)" log.Printf("Edited '%s'\n", i.Title) http.Redirect(w, r, "/ideas/", http.StatusMovedPermanently) |
