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

Set default date and time for "custom send time" to one hour into the future #6269

Closed
Tracked by #6242
miaulalala opened this issue Apr 19, 2022 · 2 comments · Fixed by #6281
Closed
Tracked by #6242

Set default date and time for "custom send time" to one hour into the future #6269

miaulalala opened this issue Apr 19, 2022 · 2 comments · Fixed by #6281

Comments

@miaulalala
Copy link
Contributor

No description provided.

@JuliaKirschenheuter
Copy link
Contributor

I've looked into possible implementation and seen, that it is not so easy to set a time for "custom send time" to one hour into the future, because of the calculation of "disabled datetimepicker-date" and "disabled datetimepicker-time". If we want to have a disabled date / time - we have to make sure, that it will not be recalculated each time the user pick a new date/time.

@st3iny do you have some ideas to this point?

@st3iny
Copy link
Member

st3iny commented Apr 21, 2022

Something like

const selectedDate = new Date()
selectedDate.setHours(selectedDate.getHours() + 1)

in data() {[...]} should work.

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

Successfully merging a pull request may close this issue.

3 participants