Skip to content

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

Closed

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?

Activity

  1. added
    bug
    on Apr 10, 2026
  2. gracefullight commented on Apr 10, 2026

    @gracefullight
    Owner

    Thanks, fixed in #66 f80201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions