I have using the jalali-moment library in my project to deal with Persian dates. currently, I'm stuck with how to use the library with highcharts to convert all dates to Jalali dates. I found a "time.Date" option that takes a custom Date Object for doing all date related operations like zoom buttons in highstock chart and xAxis labels in highstock and line charts. But really I don't understand how to create and pass the custom object to it? I see all related Q&A in StackOverflow, but none of them used the option to change the date object, also anyone doesn't mention how to do that with the jalali-moment library. Even no official example exists in the highcharts documentation. please note that I have to use the jalali-moment library and I can not use any other one.
Can you please explain exactly how to achieve this? (It's better to mention that I am using the highcharts library in the reactjs framework.)