Skip to content
New issue

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

A problem on 1438-01-01 #8

Open
pashazadeh opened this issue Sep 29, 2024 · 1 comment
Open

A problem on 1438-01-01 #8

pashazadeh opened this issue Sep 29, 2024 · 1 comment

Comments

@pashazadeh
Copy link

pashazadeh commented Sep 29, 2024

execute following code:

void testSpecificDate2() {
        LocalDate localDate1 = LocalDate.of(2059, Month.MARCH, 20);
        LocalDate localDate2 = LocalDate.of(2059, Month.MARCH, 21);

        PersianDate persianDate1 = PersianDate.from(localDate1);
        System.out.println(persianDate1);
        System.out.println(persianDate1.toGregorian());

        PersianDate persianDate2 = PersianDate.from(localDate2);
        System.out.println(persianDate2);
        System.out.println(persianDate2.toGregorian());
    }

both print 1438-01-01 but second one should be 1438-01-02

@mfathi91
Copy link
Owner

mfathi91 commented Oct 3, 2024

Thanks for the feedback. I confirm that there is an issue with detecting the leap year.
Currently I don't have a lot of free time to spend on fixing the issue. I will try to keep it in my to do list, and fix it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants