-
-
Notifications
You must be signed in to change notification settings - Fork 440
Closed
Labels
Description
Bug
DateTimePicker on iOS return in onChange method different then selected one. Different is one day.
Environment info
React native info output:
info Fetching system and libraries information...
System:
OS: macOS 10.15.2
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 128.34 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 13.7.0 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.6 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.6010548
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
react: ^16.12.0 => 16.12.0
react-native: 0.61.4 => 0.61.4
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1
Library version: 2.2.1
Steps To Reproduce
- Create simple app with DateTimePicker.
- Add item like this:
<DateTimePicker testID="dateTimePicker" timeZoneOffsetInMinutes={0} value={parseDate(value)} mode={'date'} is24Hour={true} display="default" onChange={(event, date) => { debugger; console.log("Event: " + event.type); console.log("Selected date: " + date)); />
- Run it on iOS simulator.
...
Describe what you expected to happen:
- Date on picker should be the same as it is in onChange callback function
arnaudambro, greatwitenorth, sytolk, fredriksiemund, EslamElMeniawy and 15 moreimhilla and focux