Skip to content

@gracefullight/saju is not work in date-fns #64

@tomriddle7

Description

@tomriddle7

I had imported "date-fns": "^4.1.0" and "date-fns-tz": "^3.2.0" But it returns

Error: wrong solar year NaN
at _fromYmdHms (lunar.js:72:15)
at Object.fromYmd (lunar.js:623:38)
at getLunarDate (lunar.js:3:25)
at getFourPillars (four-pillars.js:239:19)
at getSaju (index.js:24:25)

I am using date-fns for other library but I added luxon for @gracefullight/saju.

But I want to use only one library for date system.

How to use date-fns in @gracefullight/saju?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions