JalaliCalendar icon indicating copy to clipboard operation
JalaliCalendar copied to clipboard

Wrong calcualtion from gregorian calendar

Open javaherisaber opened this issue 5 years ago • 2 comments

Hi this library isn't working correctly consider gregorian calendar of this date = 2019-6-29 we expect JalaliCalendar to return 1398/04/08 but actually returns 1398/05/07

javaherisaber avatar Jun 29 '19 11:06 javaherisaber

Dear Mahdi, Thank you for your bug report, I will work on it this weekend.

razeghi71 avatar Jun 29 '19 20:06 razeghi71

Hi example 1: current date : gregorian = 2020-10-05 and jalali = 1399-07-14 but jalaliCalenda return 1399-07-15 that is wrong example 2: current date : gregorian = 2020-09-30 and jalali = 1399-07-09 and jalaliCalenda return 1399-07-09 that is OK

TariRahil avatar Oct 05 '20 12:10 TariRahil

@javaherisaber @TariRahil are you sure you're using the right 0 based Gregorian Calendar? if yes can you please paste here the snippet you're using?

razeghi71 avatar Nov 13 '23 11:11 razeghi71

Hello dear Razeghi, thanks for sharing project. Actually they are right my friend, that returns a month after current month, G date: 2023-12-22 ---- P date: 1402-11-02

mohammedhossyn avatar Dec 19 '23 15:12 mohammedhossyn

do you take into account that:

First of all I should note that java gregorian calenders month is 0 base

razeghi71 avatar Dec 19 '23 15:12 razeghi71

closing the issue as there is no response

razeghi71 avatar Jan 02 '24 00:01 razeghi71