react-native-modern-datepicker icon indicating copy to clipboard operation
react-native-modern-datepicker copied to clipboard

Bad Date Selection

Open M8TiX opened this issue 3 years ago • 6 comments

Wrong and bad date selection, happening when try to select 02/Farvardin/1400 ( 02/01/1400). Both first and second days will be selected upon touching "second of Farvardin 1400" But it is not the only place last year I had same issue with another date!

1.Go for Persian date 2.selected={getFormatedDate(new Date(), 'jYYYY/jMM/jDD')} 3. You will see the error 4. 4. The wrong date will return for 02/farvardin/1400

  • Device: Android "react": "16.13.1", "react-native": "0.63.4", "react-native-modern-datepicker": "^1.0.0-beta.91",

Screenshot_1616952225

M8TiX avatar Mar 28 '21 17:03 M8TiX

I have the same issue on 1400-01-02 date in Persian mode. I think the problem is the daylight saving time at that date.

image

ghorbani-m avatar Apr 11 '21 11:04 ghorbani-m

@M8TiX How did you put close in this? can i see sample your code?

sam9010 avatar May 03 '21 05:05 sam9010

@M8TiX How did you put close in this? can i see sample your code?

@sam9010 What do you mean by "close" ? if you mean the close icon, then it is separated from the calendar materials, something like a custom FontIcon and an onPress method, all in the children part of an Overlay from react-native-elements.

M8TiX avatar May 03 '21 06:05 M8TiX

@M8TiX ok thanks i mean the close icon, i think it is a option of the calendar

sam9010 avatar May 03 '21 07:05 sam9010

same problem here. any workaround? the calendar is impossible to use without a fix.

mdbaniani avatar May 29 '21 18:05 mdbaniani

same

MshHooman avatar Jul 22 '21 07:07 MshHooman