Skip to content

Commit d577c6c

Browse files
on update updated date
1 parent 62467d7 commit d577c6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

collections/UpdateCollection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func UpdateCollection(c *gin.Context) {
5959
// append German date just before writing
6060
now := time.Now()
6161
germanDate := now.Format("02.01.2006 15:04:05")
62-
body["created"] = germanDate
62+
body["updated"] = germanDate
6363

6464
// re-marshal body with germanDate
6565
data, err = json.MarshalIndent(body, "", " ")

0 commit comments

Comments
 (0)