Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android timepicker always open the current time #363

Merged
merged 1 commit into from Jun 9, 2017

Conversation

francescjimenez
Copy link
Contributor

Expected behaviour

When edit time, android time picker must show the time based on the time of the data

Actual behaviour

Android date picker always show the current time

Solution

Change file datepicker.android.js

@alvaromb alvaromb self-requested a review June 9, 2017 07:24
@@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove all the .idea/ files.

const now = new Date();
const isDate = locals.value && locals.value instanceof Date;
let setTime = {
hour: (isDate) ? locals.value.getHours() : now.getHours(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you format your code to 2 space tabs?

@alvaromb
Copy link
Collaborator

alvaromb commented Jun 9, 2017

@gcanti seems good to merge for me.

Also, @francescjimenez would like to help us maintain the library.

@gcanti
Copy link
Owner

gcanti commented Jun 9, 2017

@alvaromb 👍

@francescjimenez could you please squash the commits?

@francescjimenez
Copy link
Contributor Author

nice thanks! ;)

@NickBefore
Copy link

I'm having this problem guys. At which version this has been fixed?

@francescjimenez
Copy link
Contributor Author

In the last version is solved

@NickBefore
Copy link

Which is? I'm using 0.6.9.

@NickBefore
Copy link

Sorry, it was my mistake. Solved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants