smalot / bootstrap-datetimepicker

Both Date and Time picker widget based on twitter bootstrap (supports Bootstrap v2 and v3)
http://www.malot.fr/bootstrap-datetimepicker/
Apache License 2.0
3.49k stars 1.65k forks source link

How to preserve selected time when date only is changed? #712

Open NaomiN opened 6 years ago

NaomiN commented 6 years ago

I posted this question on stackoverflow https://stackoverflow.com/questions/48650305/using-bootstrap-datetimepicker-in-angularjs-directive

It seems when I select the date from the picker, the time portion adjusts to the current time. I don't want this behavior, I want the time to be unchanged in this case (if already set). However, I also want to be able to manually change time (in input and in the picker). Is there a way to achieve this behavior of not changing the time when date is changing?