From c2bb08891e7f440a798998e03c92298c1153989a Mon Sep 17 00:00:00 2001 From: hujiebin Date: Sat, 17 Jun 2023 15:59:41 +0800 Subject: [PATCH] Update anniversary.go --- domain/model/cp_m/anniversary.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/model/cp_m/anniversary.go b/domain/model/cp_m/anniversary.go index b05e89c..987b21a 100644 --- a/domain/model/cp_m/anniversary.go +++ b/domain/model/cp_m/anniversary.go @@ -182,7 +182,7 @@ func CalcNextAnniversary(timestamp int64) int64 { } birthday := time.Unix(timestamp, 0) // 计算今年的生日日期 - thisYearBirthday := time.Date(now.Year(), birthday.Month(), birthday.Day(), birthday.Hour(), birthday.Minute(), birthday.Second(), 0, time.Local) + thisYearBirthday := time.Date(now.Year(), birthday.Month(), birthday.Day(), 0, 0, 0, 0, time.Local) // 如果今年的生日还未到,则生日日期为今年的生日日期;否则为明年的生日日期 var next time.Time -- 2.22.0