From 2cc91b351c074440fff2c2715afbac4e2c49b062 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 6 May 2023 22:20:58 +0400 Subject: [PATCH] Don't modify reply's date when edit. --- database/sqlite/database.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/database/sqlite/database.go b/database/sqlite/database.go index c0a832a..050d6dc 100644 --- a/database/sqlite/database.go +++ b/database/sqlite/database.go @@ -261,8 +261,7 @@ func (d *SQLiteDatabase) EditReply(reply *guestbook.Reply) error { } defer tx.Rollback() - row := tx.Stmt(stmtUpdateReply).QueryRow( - reply.Created.Format(guestbook.DateFormat), reply.Message, reply.ID) + row := tx.Stmt(stmtUpdateReply).QueryRow(reply.Message, reply.ID) if row.Err() != nil { return row.Err() }