Skip to content

Persian calendar leap year issue #7421

Open
@Vahid-Taheri

Description

@Vahid-Taheri

Hello,
In the Persian calendar(Jalali), 1403 was a leap year, and the 12th month had 30 days. In other words, 2025/03/20 should be converted to 1403/12/30, but it is converted to 1404/01/01.

I tried to find the reason, and I found out that plotly.js is using world-calendars package to convert calendars, and the main issue is related to this package, but it hasn't been updated for 8 years.

I want to change xaxis type to categorical data because I need data type features like changing format based on resolution, avoiding repetitive labels, etc.

Also, I tried to fix world-calendar and rebuild plotly.js and patch changes using patch-package, but it didn't work.

Is there any solution to use other libraries for converting dates to Persian with coverage of features, or fixing world-calendar issue?

Metadata

Metadata

Assignees

Labels

P2considered for next cyclebugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions