question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

datepicker show Incorrect time

See original GitHub issue

Issue

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.

srdetryguio

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

  1. react-native -v: 0.46.4
  2. node -v: 8.2.0
  3. npm -v: 5.3.0
  4. yarn --version: 0.24.6
  5. target platform: Android | iOS
  6. operating system: Mac

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

1reaction
renishdevelopercommented, Dec 21, 2018

How you implemented the code for the time selection picker.??

1reaction
oldaccountmarcocommented, Dec 10, 2018

Same problem here!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found