We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Your issue may already be reported! Please search on the issue track before creating one.
give selectedDateTime a value and call open, DateTimePicker show given selectedDateTime
DateTimePicker timeSelection show current time
DateTimePicker.qml, line 39 onSelectedDateTimeChanged content original: switch(mode) { case FluidTemplates.DateTimePicker.Year: if (yearSelector.selectedYear !== picker.selectedDateTime.getFullYear()) yearSelector.selectedYear = picker.selectedDateTime.getFullYear(); break; case FluidTemplates.DateTimePicker.Month: if (dateSelector.selectedDate.getTime() !== picker.selectedDateTime.getTime()) dateSelector.selectedDate = picker.selectedDateTime; break; default: if (timeSelector.selectedTime.getTime() !== picker.selectedDateTime.getTime()) timeSelector.selectedTime = picker.selectedDateTime; break; }
my Solution: if (yearSelector.selectedYear !== picker.selectedDateTime.getFullYear()) yearSelector.selectedYear = picker.selectedDateTime.getFullYear(); if (dateSelector.selectedDate.getTime() !== picker.selectedDateTime.getTime()) dateSelector.selectedDate = picker.selectedDateTime; if (timeSelector.selectedTime.getTime() !== picker.selectedDateTime.getTime()) timeSelector.selectedTime = picker.selectedDateTime;
Include as many relevant details about the environment you experienced the bug in.
The text was updated successfully, but these errors were encountered:
plfiorini
No branches or pull requests
Your issue may already be reported!
Please search on the issue track before creating one.
Expected Behavior
give selectedDateTime a value and call open, DateTimePicker show given selectedDateTime
Current Behavior
DateTimePicker timeSelection show current time
Possible Solution
DateTimePicker.qml, line 39 onSelectedDateTimeChanged content original:
switch(mode) {
case FluidTemplates.DateTimePicker.Year:
if (yearSelector.selectedYear !== picker.selectedDateTime.getFullYear())
yearSelector.selectedYear = picker.selectedDateTime.getFullYear();
break;
case FluidTemplates.DateTimePicker.Month:
if (dateSelector.selectedDate.getTime() !== picker.selectedDateTime.getTime())
dateSelector.selectedDate = picker.selectedDateTime;
break;
default:
if (timeSelector.selectedTime.getTime() !== picker.selectedDateTime.getTime())
timeSelector.selectedTime = picker.selectedDateTime;
break;
}
my Solution:
if (yearSelector.selectedYear !== picker.selectedDateTime.getFullYear())
yearSelector.selectedYear = picker.selectedDateTime.getFullYear();
if (dateSelector.selectedDate.getTime() !== picker.selectedDateTime.getTime())
dateSelector.selectedDate = picker.selectedDateTime;
if (timeSelector.selectedTime.getTime() !== picker.selectedDateTime.getTime())
timeSelector.selectedTime = picker.selectedDateTime;
Environment
Include as many relevant details about the environment you experienced the bug in.
The text was updated successfully, but these errors were encountered: