rghorbani/react-native-persian-calendar-picker

Wrong date output

Closed this issue · 1 comments

After using onDateChange or other props for showing the current date , the output is Gregorian calendar for GMT +0000 time instead of Persian calendar
Screenshot_1556956677

@amirhosseinkh2515 Actually it's not wrong. We are outputting standard javascript date. The package is not responsible for time either (The reason for using GMT time is because we are using ISO date to avoid time differences between regions). You can use moment-jalaali to transform to jalaali date.