Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

update sitemap time format

aichy126921cd3465ff0
diff --git a/internal/repo/question/question_repo.go b/internal/repo/question/question_repo.go
index 963cf667..a5602e7e 100644
--- a/internal/repo/question/question_repo.go
+++ b/internal/repo/question/question_repo.go
@@ -199,7 +199,7 @@ func (qr *questionRepo) GetQuestionIDsPage(ctx context.Context, page, pageSize i
item := &schema.SiteMapQuestionInfo{}
item.ID = question.ID
item.Title = htmltext.UrlTitle(question.Title)
- item.UpdateTime = fmt.Sprintf("%v", question.PostUpdateTime.UTC())
+ item.UpdateTime = fmt.Sprintf("%v", question.PostUpdateTime.Format(time.RFC3339))
questionIDList = append(questionIDList, item)
}
return questionIDList, nil