datepicker show Incorrect time
See original GitHub issueIssue
If you do not select a time and right click confirm button will show the current time. But I set minuteInterval = 5 and this parameter ignore.
Expected Behavior
If you do not select time and right click confirm button will show current time given minute interval.
Code
<Item style={{ ...styles.inlineInput }} stackedLabel>
<Label style={styles.label}>{'Date'.toUpperCase()}</Label>
<Input
style={initial || date.length > 0
? { ...styles.input }
: {...styles.input,...styles.inputInvalid}}
value={date ? moment(date).format("MMMM DD, YYYY") : date}
onFocus={() => this.datepicker.onPressDate()}/>
<DatePicker
style={{width: 0,height:0}}
date={date}
mode="date"
format="MM/DD/YYYY"
minDate={new Date()}
confirmBtnText="Confirm"
cancelBtnText="Cancel"
hideText={true}
showIcon={false}
onDateChange={(date) => onDateChange(date)}
ref={(d) => { this.datepicker = d }}
/>
</Item>
Environment
react-native -v
: 0.46.4node -v
: 8.2.0npm -v
: 5.3.0yarn --version
: 0.24.6target platform
: Android | iOSoperating system
: Mac
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
Material UI DatePicker Showing Wrong Date - Stack Overflow
Save this question. Show activity on this post. The displayed date in Material UI Pickers is 1 day behind the selected date:
Read more >DatePicker value incorrect when TZ of the selected date is ...
DatePicker value is either the day before the date selected at 23:00, or, the correct day but with time set to 01:00.
Read more >Module Builder: Datepicker shows incorrect time when setting ...
When editing a dynamic content item the DateTime field shows different time than the one set in the code, e.g.: I send "1/21/2021:...
Read more >Datepicker and scheduler with timezone - first event shows ...
The value shown seems to show up as 4PM or 5PM of the previous date. Even if the event is a range, the...
Read more >Wrong time when using the date picker: bug? - Discourse Meta
Even if I write “20:00:00”, the displayed time is “Today, 22:00”. The moment.tz.guess() executed in my browser gives “Europe/Paris”, so I don't really...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How you implemented the code for the time selection picker.??
Same problem here!