Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ine
2026-02-20 16:44:21 +01:00
committed by GitHub
parent 8171e76ec8
commit 2cc808337f

View File

@@ -81,7 +81,7 @@ func (s *BeadsService) GetComments(ctx context.Context, issueID string) ([]model
func (s *BeadsService) AddComment(ctx context.Context, issueID, author, text string) (*models.Comment, error) {
query := `INSERT INTO comments (issue_id, author, text, created_at) VALUES (?, ?, ?, ?)`
createdAt := time.Now()
createdAt := time.Now().UTC()
result, err := s.UnderlyingDB().ExecContext(ctx, query, issueID, author, text, createdAt)
if err != nil {
return nil, err