rghorbani / react-native-persian-calendar-picker

Persian Calendar Picker Component for React Native
MIT License
92 stars 26 forks source link

Wrong date output #32

Closed amirhosseinkh2515 closed 5 years ago

amirhosseinkh2515 commented 5 years ago

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

rghorbani commented 5 years ago

@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.