slashmili / jalali-core

GNU Lesser General Public License v2.1
0 stars 0 forks source link

Wrong date conversion #1

Closed slashmili closed 6 months ago

slashmili commented 6 months ago

e.g:

>>> import jdatetime
>>> import datetime
>>> date = datetime.date(2124, 3, 20)
>>> jdatetime.date.fromgregorian(date=date)
jdatetime.date(1502, 12, 30)

while using jcal

jdate --jalali=2124/03/20
Dos Far 01 00:00:00 CET 1503

originally report in https://github.com/slashmili/python-jalali/issues/152

slashmili commented 6 months ago

Closing it for now the jalali-core calculation is correct.