79652191

Date: 2025-06-04 06:10:14
Score: 0.5
Natty:
Report link
<script>
$('#input_text_date').persianDatepicker({
  calendar:{
    persian: {
      leapYearMode: 'astronomical'
    }
  }
});
</script>

The issue occurs because 1403 is a leap year in the Persian calendar. To fix this, you need to explicitly set leapYearMode: 'astronomical' in your configuration. The default setting (leapYearMode: 'algorithmic') uses a mathematical approximation that causes this one-day discrepancy for Persian leap years.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ehsan Paknejad