🐛 Fix cursor get wrong date

This commit is contained in:
LittleSheep 2025-03-13 21:39:25 +08:00
parent 7a12d375c1
commit f769c5c5b5

View File

@ -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