We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lunar Calendar error for 2024. Please check the test code which produces invalid date 2024/05/11 instead of 2024/05/10.
func TestLunar(t *testing.T) { tzName := "Asia/Shanghai" cc := gocalendar.DefaultCalendar() ld, err := cc.LunarToGregorian(2024, 5, 5, false) if err != nil { t.Errorf("Error converting from lunar to gregorian: %v", err) return } tz, _ := time.LoadLocation(tzName) d := time.Date(2024, time.June, 10, 0, 0, 0, 0, tz) if d.Format("2006-01-02") != ld.In(tz).Format("2006-01-02") { t.Errorf("Unmatched calendar for Tuen Ng Fesitival(端午节), expecting %v, got %v", d, ld) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Lunar Calendar error for 2024.
Please check the test code which produces invalid date 2024/05/11 instead of 2024/05/10.
The text was updated successfully, but these errors were encountered: