From cfa7c8e071ea057668f4464c6e349b954567868e Mon Sep 17 00:00:00 2001 From: gouguoyin <245629560@qq.com> Date: Thu, 21 Apr 2022 16:51:29 +0800 Subject: [PATCH] =?UTF-8?q?v2.1.3=20=E5=88=9D=E5=A7=8B=E5=8C=96=20l.isInva?= =?UTF-8?q?lid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calendar.lunar.go | 1 + 1 file changed, 1 insertion(+) diff --git a/calendar.lunar.go b/calendar.lunar.go index 26bf830..bdf8728 100755 --- a/calendar.lunar.go +++ b/calendar.lunar.go @@ -55,6 +55,7 @@ type lunar struct { // 将公历转为农历 func (c Carbon) Lunar() (l lunar) { carbon := c.SetTimezone(PRC) + l.isInvalid = false if carbon.IsInvalid() { l.Error = carbon.Error l.isInvalid = true