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

altField contains only date after init #453

Open
arnaudbreton opened this issue Sep 21, 2012 · 0 comments
Open

altField contains only date after init #453

arnaudbreton opened this issue Sep 21, 2012 · 0 comments

Comments

@arnaudbreton
Copy link

Hi,

Above all, thank for you for developping this beautiful addon !

All is perfect, except that, at init, the altField only contains the date but not the time.
Going step by step in the code shown me that it's because after putting the time in the _updateDateTime() method, the code is coming back to the original date picker init.

I use the inline mode, in a div, and I pass this options :

$('#datetimepicker').datetimepicker({
minDateTime : nowPlusOneHour,
showButtonPanel : false,
timeFormat:"hh:mm",
useLocalTimezone:true,
altField: "#starting_time",
altFieldTimeOnly: false,
altFormat: "D, d M yy",
altTimeFormat: "hh:mm:ss z",
});

Thanks by advance,
Arnaud.

EDIT : I found a solution. I proposed it here : #455

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

No branches or pull requests

1 participant