From f769c5c5b5b8fe8042460a79bbf9d6dfa7961d21 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 13 Mar 2025 21:39:25 +0800 Subject: [PATCH] :bug: Fix cursor get wrong date --- pkg/internal/http/api/recommendation_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/http/api/recommendation_api.go b/pkg/internal/http/api/recommendation_api.go index 3d9b723..df00243 100644 --- a/pkg/internal/http/api/recommendation_api.go +++ b/pkg/internal/http/api/recommendation_api.go @@ -92,7 +92,7 @@ func getRecommendationFeed(c *fiber.Ctx) error { var cursorTime *time.Time if cursor > 0 { - cursorTime = lo.ToPtr(time.Unix(int64(cursor), 0)) + cursorTime = lo.ToPtr(time.UnixMilli(int64(cursor))) } var userId *uint